~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-21 07:12:19 UTC
  • mfrom: (2321.2.7 installer)
  • Revision ID: pqm@pqm.ubuntu.com-20070321071219-55447700ec71371f
(bialix) win32 installer improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
; [[[end]]]
79
79
 
80
80
ChangesEnvironment=yes
 
81
PrivilegesRequired=none
 
82
 
81
83
 
82
84
[Files]
83
85
Source: "*.*"; DestDir: "{app}"; Flags: ignoreversion;
84
86
Source: "lib\*.*"; DestDir: "{app}\lib"; Flags: createallsubdirs ignoreversion recursesubdirs;
85
87
Source: "doc\*.*"; DestDir: "{app}\doc"; Flags: createallsubdirs ignoreversion recursesubdirs;
 
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
 
86
117
 
87
118
[Dirs]
88
119
Name: "{userappdata}\bazaar\2.0"
89
120
 
 
121
 
90
122
[Icons]
91
123
Name: "{group}\Documentation index"; Filename: "{app}\doc\index.htm"; WorkingDir: "{app}\doc";
92
124
Name: "{group}\Bazaar Home Page"; Filename: "{app}\bazaar.url"; Comment: "http://www.bazaar-vcs.org";
93
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";
94
126
Name: "{group}\Uninstall Bzr"; Filename: "{uninstallexe}"; IconFileName: "{sys}\shell32.dll"; IconIndex: 101; Comment: "Remove Bzr completely";
95
127
 
 
128
 
96
129
[Tasks]
97
130
Name: Path; Description: "Add {app} directory to PATH environment variable";
98
 
Name: Shell; Description: "Add Bzr context menu to shell";
 
131
Name: Shell; Description: "Add Bzr context menu to shell"; Flags: unchecked
 
132
 
99
133
 
100
134
[Run]
101
135
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--start-bzr"; Flags: skipifdoesntexist runhidden;
102
 
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--check-mfc71"; Flags: skipifdoesntexist skipifsilent runhidden;
 
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]]]
103
144
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-path"; Tasks: Path; Flags: skipifdoesntexist skipifsilent runhidden;
104
145
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--add-shell-menu"; Tasks: Shell; Flags: skipifdoesntexist skipifsilent runhidden;
105
146
 
 
147
 
106
148
[UninstallRun]
107
149
Filename: "{app}\bzr_postinstall.exe"; Parameters: "--delete-path --delete-shell-menu --silent"; Flags: skipifdoesntexist runhidden;