/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/win32/bzr.iss.cog

  • Committer: Martin Pool
  • Date: 2009-07-27 06:28:35 UTC
  • mto: This revision was merged to the branch mainline in revision 4587.
  • Revision ID: mbp@sourcefrog.net-20090727062835-o66p8it658tq1sma
Add CountedLock.get_physical_lock_status

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
; Script for Inno Setup installer
2
 
; [[[cog cog.outl('; This script created by Cog from brz.iss.cog source') ]]]
 
2
; [[[cog cog.outl('; This script created by Cog from bzr.iss.cog source') ]]]
3
3
; [[[end]]]
4
4
; Cog is http://www.nedbatchelder.com/code/cog/
5
5
 
6
6
[Setup]
7
 
AppName=Breezy
 
7
AppName=Bazaar
8
8
 
9
9
; [[[cog
10
10
; # Python 2.5 compatibility code
15
15
;     sys.path.insert(0, cwd)
16
16
; #/Python 2.5 compatibility code
17
17
;
18
 
; import breezy
19
 
; try:
20
 
;     VERSION = breezy.__version__
21
 
;     AppVerName = 'Breezy %s' % VERSION
22
 
;     OutputBaseFilename = 'brz-%s-setup' % VERSION
 
18
; import bzrlib
 
19
; try: 
 
20
;     VERSION = bzrlib.__version__
 
21
;     AppVerName = 'Bazaar %s' % VERSION
 
22
;     OutputBaseFilename = 'bzr-setup-%s' % VERSION
23
23
; except:
24
24
;     VERSION = ''
25
 
;     AppVerName = 'Breezy'
26
 
;     OutputBaseFilename = 'brz-setup'
 
25
;     AppVerName = 'Bazaar'
 
26
;     OutputBaseFilename = 'bzr-setup'
27
27
;
28
28
; cog.outl('AppVerName=%s' % AppVerName)
29
29
; cog.outl('OutputBaseFilename=%s' % OutputBaseFilename)
30
30
; ]]]
31
 
AppVerName=Breezy
32
 
OutputBaseFilename=brz-setup
 
31
AppVerName=Bazaar
 
32
OutputBaseFilename=bzr-setup
33
33
; [[[end]]]
34
34
 
35
 
DefaultDirName={pf}\Breezy
36
 
DefaultGroupName=Breezy
 
35
DefaultDirName={pf}\Bazaar
 
36
DefaultGroupName=Bazaar
37
37
 
38
38
SolidCompression=yes
39
39
 
40
40
OutputDir="..\"
41
 
SourceDir="..\..\win32_brz.exe"
 
41
SourceDir="..\..\win32_bzr.exe"
42
42
 
43
 
; TODO(jelmer): Add brz.ico
44
 
; SetupIconFile="..\brz.ico"
 
43
SetupIconFile="..\bzr.ico"
45
44
InfoBeforeFile="..\tools\win32\info.txt"
46
45
 
47
 
; VersionInfoCompany="Canonical Ltd."
48
 
VersionInfoCopyright="Canonical Ltd. et al"
49
 
VersionInfoDescription="Windows installer for Breezy"
 
46
VersionInfoCompany="Canonical Ltd."
 
47
VersionInfoCopyright="Canonical Ltd., 2005-2008"
 
48
VersionInfoDescription="Windows installer for Bazaar"
50
49
; [[[cog
51
 
; import breezy
 
50
; import bzrlib
52
51
; version_number = []
53
 
; for i in breezy.version_info[:3]:
 
52
; for i in bzrlib.version_info[:3]:
54
53
;     try:
55
54
;         i = int(i)
56
55
;     except ValueError:
70
69
; ]]]
71
70
; [[[end]]]
72
71
 
73
 
AppComments="Breezy: Friendly distributed version control system"
74
 
AppPublisher="Breezy Developers"
75
 
AppPublisherURL="https://www.breezy-vcs.org/"
76
 
AppSupportURL="http://wiki.bazaar.canonical.com/BzrSupport"
77
 
AppUpdatesURL="http://wiki.bazaar.canonical.com/WindowsDownloads"
 
72
AppComments="Bazaar: Friendly distributed version control system"
 
73
AppPublisher="Canonical Ltd."
 
74
AppPublisherURL="http://www.bazaar-vcs.org"
 
75
AppSupportURL="http://www.bazaar-vcs.org/BzrSupport"
 
76
AppUpdatesURL="http://www.bazaar-vcs.org/WindowsDownloads"
78
77
; [[[cog cog.outl('AppVersion=%s' % VERSION) ]]]
79
78
; [[[end]]]
80
79
 
128
127
; else:
129
128
;     supported = pycurl.version_info()[8]
130
129
;     if 'https' in supported:
131
 
;         from breezy.transport.http.ca_bundle import get_ca_path
 
130
;         from bzrlib.transport.http.ca_bundle import get_ca_path
132
131
;         ca_path = get_ca_path()
133
132
;         if ca_path:
134
133
;             cog.outl('Source: "%s"; DestDir: "{app}"; Components: cabundle' % ca_path)
138
137
; ]]]
139
138
; [[[end]]]
140
139
 
141
 
; imageformats plugins for PyQt4
142
 
; [[[cog
143
 
; plug_dir = os.path.join(os.path.dirname(cog.inFile), # $(bzr_src_root)/tools/win32
144
 
;                         '..', '..', 'win32_bzr.exe', 'imageformats')
145
 
; if os.path.isdir(plug_dir):
146
 
;     cog.outl('Source: "imageformats\\*.*"; DestDir: "{app}\\imageformats"; '
147
 
;              'Flags: createallsubdirs ignoreversion recursesubdirs restartreplace uninsrestartdelete;')
148
 
; else:
149
 
;     cog.msg('imageformats plugins for PyQt4 not found')
150
 
; ]]]
151
 
; [[[end]]]
152
 
 
153
140
[Types]
154
141
Name: "typical"; Description: "A typical installation"
155
142
Name: "full"; Description: "Full Installation (typical installation plus test utilities)"
178
165
 
179
166
[Icons]
180
167
Name: "{group}\Documentation index"; Filename: "{app}\doc\index.html"; WorkingDir: "{app}\doc";
181
 
Name: "{group}\Breezy Home Page"; Filename: "{app}\breezy.url"; Comment: "https://www.breezy-vcs.org/";
 
168
Name: "{group}\Bazaar Home Page"; Filename: "{app}\bazaar.url"; Comment: "http://www.bazaar-vcs.org";
182
169
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";
183
170
; NOTE: Intent is to change the log file location - the line below will need to change to reflect that.
184
171
Name: "{group}\Open Bzr log file"; Filename: "notepad.exe"; Parameters: "{userdocs}\.bzr.log"; Comment: "Launch notepad to view the bzr log file";
201
188
 
202
189
 
203
190
[Registry]
204
 
Root: HKLM; Subkey: "SOFTWARE\Breezy"; Flags: noerror uninsdeletekey
205
 
Root: HKLM; Subkey: "SOFTWARE\Breezy"; ValueName: "InstallPath"; ValueType: string; ValueData: "{app}"; Flags: noerror
 
191
Root: HKLM; Subkey: "SOFTWARE\Bazaar"; Flags: noerror uninsdeletekey
 
192
Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "InstallPath"; ValueType: string; ValueData: "{app}"; Flags: noerror
206
193
; Don't write stuff that can be implied
207
 
;Root: HKLM; Subkey: "SOFTWARE\Breezy"; ValueName: "breezyPath"; ValueType: string; ValueData: "{app}\lib\library.zip\breezy"; Flags: noerror
208
 
;Root: HKLM; Subkey: "SOFTWARE\Breezy"; ValueName: "PluginsPath"; ValueType: string; ValueData: "{app}\plugins"; Flags: noerror
209
 
;Root: HKLM; Subkey: "SOFTWARE\Breezy"; ValueName: "PythonPath"; ValueType: string; ValueData: "{app}\lib\library.zip"; Flags: noerror
210
 
; [[[cog cog.outl('Root: HKLM; Subkey: "SOFTWARE\Breezy"; ValueName: "Version"; ValueType: string; ValueData: "%s"; Flags: noerror' % VERSION) ]]]
 
194
;Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "BzrlibPath"; ValueType: string; ValueData: "{app}\lib\library.zip\bzrlib"; Flags: noerror
 
195
;Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "PluginsPath"; ValueType: string; ValueData: "{app}\plugins"; Flags: noerror
 
196
;Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "PythonPath"; ValueType: string; ValueData: "{app}\lib\library.zip"; Flags: noerror
 
197
; [[[cog cog.outl('Root: HKLM; Subkey: "SOFTWARE\Bazaar"; ValueName: "Version"; ValueType: string; ValueData: "%s"; Flags: noerror' % VERSION) ]]]
211
198
; [[[end]]]
212
199
 
213
200
 
214
201
[Run]
215
 
Filename: "{app}\brz_postinstall.exe"; Parameters: "--start-brz"; Flags: skipifdoesntexist runhidden;
216
 
Filename: "{app}\brz_postinstall.exe"; Parameters: "--add-path"; Tasks: Path; Flags: skipifdoesntexist skipifsilent runhidden;
 
202
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--start-bzr"; Flags: skipifdoesntexist runhidden;
 
203
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-path"; Tasks: Path; Flags: skipifdoesntexist skipifsilent runhidden;
217
204
; [[[cog
218
205
; if "TBZR" in os.environ:
219
206
;     cog.outl('Filename: "regsvr32.exe"; Parameters: "/s /i: /n tbzrshellext_x86.dll"; WorkingDir: "{app}"; Components: tortoise; Description: "Registering Tortoise"; StatusMsg: "Registering Tortoise"')
224
211
 
225
212
 
226
213
[UninstallRun]
227
 
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--delete-path --delete-shell-menu --silent"; Flags: skipifdoesntexist runhidden;
 
214
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--delete-path --delete-shell-menu --silent"; Flags: skipifdoesntexist runhidden; 
228
215
; [[[cog
229
216
; if "TBZR" in os.environ:
230
217
;     cog.outl('Filename: "regsvr32.exe"; Parameters: "/u /s /i: tbzrshellext_x86.dll"; WorkingDir: "{app}"; Components: tortoise; StatusMsg: "Unregistering Tortoise"; Flags: skipifdoesntexist')
329
316
end;
330
317
 
331
318
 
332
 
function InitializeUninstall(): Boolean;
 
319
function InitializeUninstall(): Boolean; 
333
320
begin
334
321
    ShutdownTBZR;
335
322
    result := True;