1
; Script for Inno Setup installer
2
; [[[cog cog.outl('; This script created by Cog from bzr.iss.cog source') ]]]
4
; Cog is http://www.nedbatchelder.com/code/cog/
10
; # Python 2.5 compatibility code
14
; if cwd not in sys.path:
15
; sys.path.insert(0, cwd)
16
; #/Python 2.5 compatibility code
20
; VERSION = bzrlib.__version__
21
; AppVerName = 'Bazaar %s' % VERSION
22
; OutputBaseFilename = 'bzr-setup-%s' % VERSION
25
; AppVerName = 'Bazaar'
26
; OutputBaseFilename = 'bzr-setup'
28
; cog.outl('AppVerName=%s' % AppVerName)
29
; cog.outl('OutputBaseFilename=%s' % OutputBaseFilename)
32
OutputBaseFilename=bzr-setup
35
DefaultDirName={pf}\Bazaar
36
DefaultGroupName=Bazaar
41
SourceDir="..\..\win32_bzr.exe"
43
SetupIconFile="..\bzr.ico"
44
InfoBeforeFile="..\tools\win32\info.txt"
46
VersionInfoCompany="Canonical Ltd."
47
VersionInfoCopyright="Canonical Ltd., 2005-2006"
48
VersionInfoDescription="Installer for stand-alone bzr.exe"
52
; for i in bzrlib.version_info[:3]:
57
; version_number.append(i)
58
; # incremental build number
59
; from tools.win32.file_version import *
61
; version_prev = get_file_version(OutputBaseFilename + '.exe')
62
; except (FileNotFound, VersionNotAvailable):
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)
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"
77
; [[[cog cog.outl('AppVersion=%s' % VERSION) ]]]
80
ChangesEnvironment=yes
83
Source: "*.*"; DestDir: "{app}"; Flags: ignoreversion;
84
Source: "lib\*.*"; DestDir: "{app}\lib"; Flags: createallsubdirs ignoreversion recursesubdirs;
85
Source: "doc\*.*"; DestDir: "{app}\doc"; Flags: createallsubdirs ignoreversion recursesubdirs;
88
Name: "{userappdata}\bazaar\2.0"
91
Name: "{group}\Documentation index"; Filename: "{app}\doc\index.htm"; WorkingDir: "{app}\doc";
92
Name: "{group}\Bazaar Home Page"; Filename: "{app}\bazaar.url"; Comment: "http://www.bazaar-vcs.org";
93
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";
94
Name: "{group}\Uninstall Bzr"; Filename: "{uninstallexe}"; IconFileName: "{sys}\shell32.dll"; IconIndex: 101; Comment: "Remove Bzr completely";
97
Name: Path; Description: "Add {app} directory to PATH environment variable";
98
Name: Shell; Description: "Add Bzr context menu to shell";
101
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--start-bzr"; Flags: skipifdoesntexist runhidden;
102
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--check-mfc71"; Flags: skipifdoesntexist skipifsilent runhidden;
103
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-path"; Tasks: Path; Flags: skipifdoesntexist skipifsilent runhidden;
104
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-shell-menu"; Tasks: Shell; Flags: skipifdoesntexist skipifsilent runhidden;
107
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--delete-path --delete-shell-menu --silent"; Flags: skipifdoesntexist runhidden;