~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

merge with bzr.dev revno.1860

Show diffs side-by-side

added added

removed removed

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