1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
1 |
; Script for Inno Setup installer |
2 |
; [[[cog cog.outl('; This script created by Cog from bzr.iss.cog source') ]]] |
|
3 |
; [[[end]]] |
|
4 |
; Cog is http://www.nedbatchelder.com/code/cog/ |
|
5 |
||
6 |
[Setup] |
|
1861.2.6
by Alexander Belchenko
branding: change Bazaar-NG to Bazaar |
7 |
AppName=Bazaar |
1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
8 |
|
9 |
; [[[cog |
|
10 |
; import bzrlib |
|
11 |
; try: |
|
12 |
; VERSION = bzrlib.__version__ |
|
1861.2.6
by Alexander Belchenko
branding: change Bazaar-NG to Bazaar |
13 |
; AppVerName = 'Bazaar %s' % VERSION |
1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
14 |
; OutputBaseFilename = 'bzr-setup-%s' % VERSION |
15 |
; except: |
|
16 |
; VERSION = '' |
|
1861.2.6
by Alexander Belchenko
branding: change Bazaar-NG to Bazaar |
17 |
; AppVerName = 'Bazaar' |
1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
18 |
; OutputBaseFilename = 'bzr-setup' |
19 |
;
|
|
20 |
; cog.outl('AppVerName=%s' % AppVerName) |
|
21 |
; cog.outl('OutputBaseFilename=%s' % OutputBaseFilename) |
|
22 |
; ]]] |
|
1861.2.6
by Alexander Belchenko
branding: change Bazaar-NG to Bazaar |
23 |
AppVerName=Bazaar |
1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
24 |
OutputBaseFilename=bzr-setup |
25 |
; [[[end]]] |
|
26 |
||
1861.2.6
by Alexander Belchenko
branding: change Bazaar-NG to Bazaar |
27 |
DefaultDirName={pf}\Bazaar |
28 |
DefaultGroupName=Bazaar |
|
1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
29 |
|
30 |
SolidCompression=yes |
|
31 |
||
32 |
OutputDir="..\" |
|
33 |
SourceDir="..\..\win32_bzr.exe" |
|
34 |
||
35 |
SetupIconFile="..\bzr.ico" |
|
1861.2.9
by Alexander Belchenko
rename gpl.txt => COPYING.txt |
36 |
LicenseFile="..\COPYING.txt" |
1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
37 |
|
38 |
VersionInfoCompany="Canonical Ltd." |
|
39 |
VersionInfoCopyright="Canonical Ltd., 2005-2006" |
|
40 |
VersionInfoDescription="Installer for stand-alone bzr.exe" |
|
41 |
; [[[cog |
|
42 |
; import bzrlib |
|
43 |
; version_number = [] |
|
44 |
; for i in bzrlib.version_info[:3]: |
|
45 |
; try: |
|
46 |
; i = int(i) |
|
47 |
; except ValueError: |
|
48 |
; i = 0 |
|
49 |
; version_number.append(i) |
|
50 |
; # incremental build number |
|
51 |
; from tools.win32.file_version import * |
|
52 |
; try: |
|
53 |
; version_prev = get_file_version(OutputBaseFilename + '.exe') |
|
54 |
; except (FileNotFound, VersionNotAvailable): |
|
55 |
; pass |
|
56 |
; else: |
|
57 |
; if version_number == list(version_prev[:3]): |
|
58 |
; version_number.append((version_prev[-1]+1) % 65536) |
|
59 |
; version_str = '.'.join(str(i) for i in version_number) |
|
60 |
; cog.outl('VersionInfoVersion="%s"' % version_str) |
|
61 |
; ]]] |
|
62 |
; [[[end]]] |
|
63 |
||
1861.2.6
by Alexander Belchenko
branding: change Bazaar-NG to Bazaar |
64 |
AppComments="Bazaar: Friendly distributed version control system" |
1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
65 |
AppPublisher="Canonical Ltd." |
66 |
AppPublisherURL="http://www.bazaar-vcs.org" |
|
67 |
AppSupportURL="http://www.bazaar-vcs.org/BzrSupport" |
|
68 |
AppUpdatesURL="http://www.bazaar-vcs.org/WindowsDownloads" |
|
69 |
; [[[cog cog.outl('AppVersion=%s' % VERSION) ]]] |
|
70 |
; [[[end]]] |
|
71 |
||
72 |
ChangesEnvironment=yes |
|
73 |
||
74 |
[Files] |
|
75 |
Source: "*.*"; DestDir: "{app}"; Flags: ignoreversion; |
|
76 |
Source: "lib\*.*"; DestDir: "{app}\lib"; Flags: createallsubdirs ignoreversion recursesubdirs; |
|
77 |
Source: "doc\*.*"; DestDir: "{app}\doc"; Flags: createallsubdirs ignoreversion recursesubdirs; |
|
78 |
||
79 |
[Dirs] |
|
80 |
Name: "{userappdata}\bazaar\2.0" |
|
81 |
||
82 |
[Icons] |
|
83 |
Name: "{group}\Documentation index"; Filename: "{app}\doc\index.htm"; WorkingDir: "{app}\doc"; |
|
1861.2.6
by Alexander Belchenko
branding: change Bazaar-NG to Bazaar |
84 |
Name: "{group}\Bazaar Home Page"; Filename: "{app}\bazaar.url"; Comment: "http://www.bazaar-vcs.org"; |
1821.1.1
by Alexander Belchenko
win32 installer for bzr.dev.0.9 |
85 |
Name: "{group}\Start Bzr in cmd shell"; Filename: "{sys}\cmd.exe"; Parameters: "/K start_bzr.bat"; WorkingDir: "{app}"; IconFilename: "{app}\bzr.exe"; Comment: "Open new Bzr session"; |
86 |
Name: "{group}\Uninstall Bzr"; Filename: "{uninstallexe}"; IconFileName: "{sys}\shell32.dll"; IconIndex: 101; Comment: "Remove Bzr completely"; |
|
87 |
||
88 |
[Tasks] |
|
89 |
Name: Path; Description: "Add {app} directory to PATH environment variable"; |
|
90 |
Name: Shell; Description: "Add Bzr context menu to shell"; |
|
91 |
||
92 |
[Run] |
|
93 |
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--start-bzr"; Flags: skipifdoesntexist runhidden; |
|
94 |
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--check-mfc71"; Flags: skipifdoesntexist skipifsilent runhidden; |
|
95 |
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-path"; Tasks: Path; Flags: skipifdoesntexist skipifsilent runhidden; |
|
96 |
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-shell-menu"; Tasks: Shell; Flags: skipifdoesntexist skipifsilent runhidden; |
|
97 |
||
98 |
[UninstallRun] |
|
99 |
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--delete-path --delete-shell-menu --silent"; Flags: skipifdoesntexist runhidden; |