~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"
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
45
46
VersionInfoCompany="Canonical Ltd."
2245.4.7 by Alexander Belchenko
standalone installer: win98 support
47
VersionInfoCopyright="Canonical Ltd., 2005-2007"
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
48
VersionInfoDescription="Installer for stand-alone bzr.exe"
49
; [[[cog
50
; import bzrlib
51
; version_number = []
52
; for i in bzrlib.version_info[:3]:
53
;     try:
54
;         i = int(i)
55
;     except ValueError:
56
;         i = 0
57
;     version_number.append(i)
58
; # incremental build number
59
; from tools.win32.file_version import *
60
; try:
61
;     version_prev = get_file_version(OutputBaseFilename + '.exe')
62
; except (FileNotFound, VersionNotAvailable):
63
;     pass
64
; else:
65
;     if version_number == list(version_prev[:3]):
66
;         version_number.append((version_prev[-1]+1) % 65536)
67
; version_str = '.'.join(str(i) for i in version_number)
68
; cog.outl('VersionInfoVersion="%s"' % version_str)
69
; ]]]
70
; [[[end]]]
71
1861.2.6 by Alexander Belchenko
branding: change Bazaar-NG to Bazaar
72
AppComments="Bazaar: Friendly distributed version control system"
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
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"
77
; [[[cog cog.outl('AppVersion=%s' % VERSION) ]]]
78
; [[[end]]]
79
80
ChangesEnvironment=yes
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
81
PrivilegesRequired=none
82
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
83
84
[Files]
85
Source: "*.*"; DestDir: "{app}"; Flags: ignoreversion;
86
Source: "lib\*.*"; DestDir: "{app}\lib"; Flags: createallsubdirs ignoreversion recursesubdirs;
87
Source: "doc\*.*"; DestDir: "{app}\doc"; Flags: createallsubdirs ignoreversion recursesubdirs;
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
88
; [[[cog
89
; try:
90
;     import pycurl
91
; except ImportError:
92
;     ca_path = None
93
; else:
94
;     supported = pycurl.version_info()[8]
95
;     if 'https' in supported:
96
;         from bzrlib.transport.http.ca_bundle import get_ca_path
97
;         ca_path = get_ca_path()
98
;         if ca_path:
99
;             cog.outl('Source: "%s"; DestDir: "{app}"; Components: cabundle' % ca_path)
100
;         else:
101
;             cog.msg('You have pycurl with SSL support, '
102
;                     'but CA Bundle (curl-ca-bundle.crt) not found!')
103
; ]]]
104
; [[[end]]]
105
106
107
[Components]
108
Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
109
; [[[cog
110
; if ca_path:
111
;     cog.outl('Name: "cabundle"; '
112
;              'Description: "CA certificates for SSL support"; '
113
;              'Types: full custom')
114
; ]]]
115
; [[[end]]]
116
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
117
118
[Dirs]
119
Name: "{userappdata}\bazaar\2.0"
120
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
121
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
122
[Icons]
123
Name: "{group}\Documentation index"; Filename: "{app}\doc\index.htm"; WorkingDir: "{app}\doc";
1861.2.6 by Alexander Belchenko
branding: change Bazaar-NG to Bazaar
124
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%)
125
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";
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
126
Name: "{group}\Uninstall Bzr"; Filename: "{uninstallexe}"; IconFileName: "{sys}\shell32.dll"; IconIndex: 101; Comment: "Remove Bzr completely";
127
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
128
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
129
[Tasks]
130
Name: Path; Description: "Add {app} directory to PATH environment variable";
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
131
Name: Shell; Description: "Add Bzr context menu to shell"; Flags: unchecked
132
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
133
134
[Run]
135
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--start-bzr"; Flags: skipifdoesntexist runhidden;
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
136
; [[[cog
137
; import os
138
; if os.path.isfile('win32_bzr.exe/lib/win32ui.pyd'):	# pywin32 mfc wrapper
139
;     cog.outl('Filename: "{app}\bzr_postinstall.exe"; '
140
;              'Parameters: "--check-mfc71"; '
141
;              'Flags: skipifdoesntexist skipifsilent runhidden;')
142
; ]]]
143
; [[[end]]]
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
144
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-path"; Tasks: Path; Flags: skipifdoesntexist skipifsilent runhidden;
145
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-shell-menu"; Tasks: Shell; Flags: skipifdoesntexist skipifsilent runhidden;
146
2321.2.7 by Alexander Belchenko
win32 standalone installer improvements:
147
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
148
[UninstallRun]
149
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--delete-path --delete-shell-menu --silent"; Flags: skipifdoesntexist runhidden;