~bzr-pqm/bzr/bzr.dev

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
2231.1.1 by Alexander Belchenko
Python 2.5 fixes for win32 installer
10
; # Python 2.5 compatibility code
11
; import os
12
; import sys
13
; cwd = os.getcwd()
14
; if cwd not in sys.path:
15
;     sys.path.insert(0, cwd)
16
; #/Python 2.5 compatibility code
17
;
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
18
; import bzrlib
19
; try: 
20
;     VERSION = bzrlib.__version__
1861.2.6 by Alexander Belchenko
branding: change Bazaar-NG to Bazaar
21
;     AppVerName = 'Bazaar %s' % VERSION
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
22
;     OutputBaseFilename = 'bzr-setup-%s' % VERSION
23
; except:
24
;     VERSION = ''
1861.2.6 by Alexander Belchenko
branding: change Bazaar-NG to Bazaar
25
;     AppVerName = 'Bazaar'
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
26
;     OutputBaseFilename = 'bzr-setup'
27
;
28
; cog.outl('AppVerName=%s' % AppVerName)
29
; cog.outl('OutputBaseFilename=%s' % OutputBaseFilename)
30
; ]]]
1861.2.6 by Alexander Belchenko
branding: change Bazaar-NG to Bazaar
31
AppVerName=Bazaar
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
32
OutputBaseFilename=bzr-setup
33
; [[[end]]]
34
1861.2.6 by Alexander Belchenko
branding: change Bazaar-NG to Bazaar
35
DefaultDirName={pf}\Bazaar
36
DefaultGroupName=Bazaar
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
37
38
SolidCompression=yes
39
40
OutputDir="..\"
41
SourceDir="..\..\win32_bzr.exe"
42
43
SetupIconFile="..\bzr.ico"
2070.2.2 by Alexander Belchenko
win32 installer: make short info page instead of full GPL license text
44
InfoBeforeFile="..\tools\win32\info.txt"
2685.2.1 by Alexander Belchenko
windows standalone installer: show link to survey when installation finished
45
InfoAfterFile="..\tools\win32\survey.txt"
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
46
47
VersionInfoCompany="Canonical Ltd."
2245.4.7 by Alexander Belchenko
standalone installer: win98 support
48
VersionInfoCopyright="Canonical Ltd., 2005-2007"
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
49
VersionInfoDescription="Installer for stand-alone bzr.exe"
50
; [[[cog
51
; import bzrlib
52
; version_number = []
53
; for i in bzrlib.version_info[:3]:
54
;     try:
55
;         i = int(i)
56
;     except ValueError:
57
;         i = 0
58
;     version_number.append(i)
59
; # incremental build number
60
; from tools.win32.file_version import *
61
; try:
62
;     version_prev = get_file_version(OutputBaseFilename + '.exe')
63
; except (FileNotFound, VersionNotAvailable):
64
;     pass
65
; else:
66
;     if version_number == list(version_prev[:3]):
67
;         version_number.append((version_prev[-1]+1) % 65536)
68
; version_str = '.'.join(str(i) for i in version_number)
69
; cog.outl('VersionInfoVersion="%s"' % version_str)
70
; ]]]
71
; [[[end]]]
72
1861.2.6 by Alexander Belchenko
branding: change Bazaar-NG to Bazaar
73
AppComments="Bazaar: Friendly distributed version control system"
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
74
AppPublisher="Canonical Ltd."
75
AppPublisherURL="http://www.bazaar-vcs.org"
76
AppSupportURL="http://www.bazaar-vcs.org/BzrSupport"
77
AppUpdatesURL="http://www.bazaar-vcs.org/WindowsDownloads"
78
; [[[cog cog.outl('AppVersion=%s' % VERSION) ]]]
79
; [[[end]]]
80
81
ChangesEnvironment=yes
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
82
PrivilegesRequired=none
83
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
84
85
[Files]
86
Source: "*.*"; DestDir: "{app}"; Flags: ignoreversion;
87
Source: "lib\*.*"; DestDir: "{app}\lib"; Flags: createallsubdirs ignoreversion recursesubdirs;
88
Source: "doc\*.*"; DestDir: "{app}\doc"; Flags: createallsubdirs ignoreversion recursesubdirs;
3193.7.9 by Alexander Belchenko
Ian's review
89
Source: "plugins\*.*"; DestDir: "{app}\plugins"; Components: plugins; Flags: createallsubdirs ignoreversion recursesubdirs;
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
90
; [[[cog
91
; try:
92
;     import pycurl
93
; except ImportError:
94
;     ca_path = None
95
; else:
96
;     supported = pycurl.version_info()[8]
97
;     if 'https' in supported:
98
;         from bzrlib.transport.http.ca_bundle import get_ca_path
99
;         ca_path = get_ca_path()
100
;         if ca_path:
101
;             cog.outl('Source: "%s"; DestDir: "{app}"; Components: cabundle' % ca_path)
102
;         else:
103
;             cog.msg('You have pycurl with SSL support, '
104
;                     'but CA Bundle (curl-ca-bundle.crt) not found!')
105
; ]]]
106
; [[[end]]]
107
108
109
[Components]
110
Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
3193.7.4 by Alexander Belchenko
update script for windows installer
111
Name: "plugins"; Description: "Default plugins"; Types: full custom;
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
112
; [[[cog
113
; if ca_path:
114
;     cog.outl('Name: "cabundle"; '
115
;              'Description: "CA certificates for SSL support"; '
116
;              'Types: full custom')
117
; ]]]
118
; [[[end]]]
119
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
120
121
[Dirs]
122
Name: "{userappdata}\bazaar\2.0"
3010.4.3 by Alexander Belchenko
teach uninstaller to delete plugins subdirectory; NEWS entry.
123
Name: "{app}\plugins"; Flags: uninsalwaysuninstall
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
124
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
125
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
126
[Icons]
2666.2.1 by Alexander Belchenko
change generated documentation extension from htm to html
127
Name: "{group}\Documentation index"; Filename: "{app}\doc\index.html"; WorkingDir: "{app}\doc";
1861.2.6 by Alexander Belchenko
branding: change Bazaar-NG to Bazaar
128
Name: "{group}\Bazaar Home Page"; Filename: "{app}\bazaar.url"; Comment: "http://www.bazaar-vcs.org";
2245.4.9 by Alexander Belchenko
Inno Setup script: using {cmd} macro instead of env varibale substitution (%COMSPEC%)
129
Name: "{group}\Start Bzr in cmd shell"; Filename: "{cmd}"; Parameters: "/K start_bzr.bat"; WorkingDir: "{app}"; IconFilename: "{app}\bzr.exe"; Comment: "Open new Bzr session";
2571.3.3 by Alexander Belchenko
branding
130
Name: "{group}\Uninstall Bazaar"; Filename: "{uninstallexe}"; IconFileName: "{sys}\shell32.dll"; IconIndex: 101; Comment: "Remove Bzr completely";
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
131
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
132
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
133
[Tasks]
134
Name: Path; Description: "Add {app} directory to PATH environment variable";
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
135
Name: Shell; Description: "Add Bzr context menu to shell"; Flags: unchecked
136
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
137
3010.4.2 by Alexander Belchenko
Windows standalone installer write to the registry some useful info about paths and bzr version
138
[Registry]
139
Root: HKLM; Subkey: "SOFTWARE\Bazaar"; Flags: noerror uninsdeletekey
140
Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "InstallPath"; ValueType: string; ValueData: "{app}"; Flags: noerror
141
Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "BzrlibPath"; ValueType: string; ValueData: "{app}\lib\library.zip\bzrlib"; Flags: noerror
142
Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "PluginsPath"; ValueType: string; ValueData: "{app}\plugins"; Flags: noerror
143
Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "PythonPath"; ValueType: string; ValueData: "{app}\lib\library.zip"; Flags: noerror
144
; [[[cog cog.outl('Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "Version"; ValueType: string; ValueData: "%s"; Flags: noerror' % VERSION) ]]]
145
; [[[end]]]
146
147
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
148
[Run]
149
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--start-bzr"; Flags: skipifdoesntexist runhidden;
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
150
; [[[cog
151
; import os
152
; if os.path.isfile('win32_bzr.exe/lib/win32ui.pyd'):	# pywin32 mfc wrapper
153
;     cog.outl('Filename: "{app}\bzr_postinstall.exe"; '
154
;              'Parameters: "--check-mfc71"; '
155
;              'Flags: skipifdoesntexist skipifsilent runhidden;')
156
; ]]]
157
; [[[end]]]
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
158
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-path"; Tasks: Path; Flags: skipifdoesntexist skipifsilent runhidden;
159
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-shell-menu"; Tasks: Shell; Flags: skipifdoesntexist skipifsilent runhidden;
160
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
161
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
162
[UninstallRun]
163
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--delete-path --delete-shell-menu --silent"; Flags: skipifdoesntexist runhidden; 
3010.4.3 by Alexander Belchenko
teach uninstaller to delete plugins subdirectory; NEWS entry.
164
165
166
[UninstallDelete]
167
Type: filesandordirs; Name: "{app}\plugins\*"