]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/make_installer.py
2 This script will generate a setup script for InnoSetup and then run it
3 to make the installer executable. If all goes right the proper versions
4 of Python and wxWindows (including hybrid/final settings) will all be
5 calculated based on what wxc.pyd imports and an appropriate installer
13 ISCC
= r
"%s\InnoSetup2Ex\ISCC.exe %s"
15 #----------------------------------------------------------------------
18 ;;------------------------------------------------------------
22 AppVerName = wxPython %(VERSION)s for Python %(PYTHONVER)s
23 OutputBaseFilename = wxPythonWIN32-%(VERSION)s-%(PYVER)s
24 AppCopyright = Copyright © 2003 Total Control Software
25 DefaultDirName = {code:GetInstallDir|c:\DoNotInstallHere}
26 DefaultGroupName = wxPython %(SHORTVER)s for Python %(PYTHONVER)s
27 AlwaysCreateUninstallIcon = yes
28 AdminPrivilegesRequired = yes
31 UninstallStyle = modern
32 DisableStartupPrompt = true
35 DisableReadyMemo = true
36 DisableReadyPage = true
37 ;;DisableDirPage = true
38 DisableProgramGroupPage = no
39 DisableAppendDir = true
40 UsePreviousAppDir = no
43 UninstallFilesDir = {app}\wxPython
44 AppPublisherURL = http://wxPython.org/
45 LicenseFile = licence\licence.txt
46 CodeFile = %(IFSFILE)s
50 ;;------------------------------------------------------------
55 ;;------------------------------------------------------------
58 Name: core; Description: "wxPython modules and library"; Types: full compact custom; Flags: fixed
59 Name: docs; Description: "Documentation"; Types: full
60 Name: demo; Description: "Demo application"; Types: full
61 Name: samples; Description: "Sample applications"; Types: full
64 ;;------------------------------------------------------------
67 Source: "%(SYSDIR)s\MSVCRT.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: sharedfile uninsneveruninstall restartreplace; Components: core
68 Source: "%(SYSDIR)s\MSVCIRT.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: sharedfile uninsneveruninstall restartreplace; Components: core
69 Source: "%(SYSDIR)s\MSVCP60.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: sharedfile uninsneveruninstall restartreplace; Components: core
71 Source: "%(WXDIR)s\lib\%(WXDLL)s"; DestDir: "{app}\wxPython"; Components: core
73 Source: "wxPython\wxc.pyd"; DestDir: "{app}\wxPython"; Components: core
74 Source: "wxPython\gridc.pyd"; DestDir: "{app}\wxPython"; Components: core
75 Source: "wxPython\helpc.pyd"; DestDir: "{app}\wxPython"; Components: core
76 Source: "wxPython\htmlc.pyd"; DestDir: "{app}\wxPython"; Components: core
77 Source: "wxPython\calendarc.pyd"; DestDir: "{app}\wxPython"; Components: core
78 Source: "wxPython\wizardc.pyd"; DestDir: "{app}\wxPython"; Components: core
79 Source: "wxPython\glcanvasc.pyd"; DestDir: "{app}\wxPython"; Components: core
80 Source: "wxPython\oglc.pyd"; DestDir: "{app}\wxPython"; Components: core
81 Source: "wxPython\stc_c.pyd"; DestDir: "{app}\wxPython"; Components: core
82 Source: "wxPython\xrcc.pyd"; DestDir: "{app}\wxPython"; Components: core
83 Source: "wxPython\gizmosc.pyd"; DestDir: "{app}\wxPython"; Components: core
84 Source: "wxPython\iewinc.pyd"; DestDir: "{app}\wxPython"; Components: core
85 Source: "wxPython\dllwidget_c.pyd"; DestDir: "{app}\wxPython"; Components: core
87 Source: "wxPython\*.py"; DestDir: "{app}\wxPython"; Components: core
88 Source: "wxPython\lib\*.py"; DestDir: "{app}\wxPython\lib"; Components: core
89 Source: "wxPython\lib\*.wdr"; DestDir: "{app}\wxPython\lib"; Components: core
90 Source: "wxPython\lib\editor\*.py"; DestDir: "{app}\wxPython\lib\editor"; Components: core
91 Source: "wxPython\lib\editor\*.txt"; DestDir: "{app}\wxPython\lib\editor"; Components: core
92 Source: "wxPython\lib\mixins\*.py"; DestDir: "{app}\wxPython\lib\mixins"; Components: core
93 Source: "wxPython\lib\PyCrust\*.py"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
94 Source: "wxPython\lib\colourchooser\*.py"; DestDir: "{app}\wxPython\lib\colourchooser"; Components: core
95 Source: "wxPython\lib\colourchooser\*.py"; DestDir: "{app}\wxPython\lib\colourchooser"; Components: core
96 Source: "wxPython\py\*.py"; DestDir: "{app}\wxPython\py"; Components: core
97 Source: "wxPython\py\*.txt"; DestDir: "{app}\wxPython\py"; Components: core
98 Source: "wxPython\py\*.ico"; DestDir: "{app}\wxPython\py"; Components: core
99 Source: "wxPython\py\*.png"; DestDir: "{app}\wxPython\py"; Components: core
100 Source: "wxPython\py\tests\*.py"; DestDir: "{app}\wxPython\py\tests"; Components: core
101 Source: "wxPython\py\wxd\*.py"; DestDir: "{app}\wxPython\py\wxd"; Components: core
103 Source: "wx\*.py"; DestDir: "{app}\wx"; Components: core
104 Source: "wx\lib\*.py"; DestDir: "{app}\wx\lib"; Components: core
105 Source: "wx\lib\colourchooser\*.py"; DestDir: "{app}\wx\lib\colourchooser"; Components: core
106 Source: "wx\lib\editor\*.py"; DestDir: "{app}\wx\lib\editor"; Components: core
107 Source: "wx\lib\mixins\*.py"; DestDir: "{app}\wx\lib\mixins"; Components: core
108 Source: "wx\py\*.py"; DestDir: "{app}\wx\py"; Components: core
109 Source: "wx\tools\*.py"; DestDir: "{app}\wx\tools"; Components: core
110 Source: "wx\tools\XRCed\*.py"; DestDir: "{app}\wx\tools\XRCed"; Components: core
115 Source: "demo\*.py"; DestDir: "{app}\wxPython\demo"; Components: demo
116 Source: "demo\*.xml"; DestDir: "{app}\wxPython\demo"; Components: demo
117 Source: "demo\*.txt"; DestDir: "{app}\wxPython\demo"; Components: demo
118 Source: "demo\*.ico"; DestDir: "{app}\wxPython\demo"; Components: demo
119 Source: "demo\*.wdr"; DestDir: "{app}\wxPython\demo"; Components: demo
121 Source: "demo\bitmaps\*.gif"; DestDir: "{app}\wxPython\demo\bitmaps"; Components: demo
122 Source: "demo\bitmaps\*.bmp"; DestDir: "{app}\wxPython\demo\bitmaps"; Components: demo
123 Source: "demo\bitmaps\*.jpg"; DestDir: "{app}\wxPython\demo\bitmaps"; Components: demo
124 Source: "demo\bitmaps\*.png"; DestDir: "{app}\wxPython\demo\bitmaps"; Components: demo
125 Source: "demo\bitmaps\*.ico"; DestDir: "{app}\wxPython\demo\bitmaps"; Components: demo
127 Source: "demo\bmp_source\*.gif"; DestDir: "{app}\wxPython\demo\bmp_source"; Components: demo
128 Source: "demo\bmp_source\*.bmp"; DestDir: "{app}\wxPython\demo\bmp_source"; Components: demo
129 ;;Source: "demo\bmp_source\*.jpg"; DestDir: "{app}\wxPython\demo\bmp_source"; Components: demo
130 Source: "demo\bmp_source\*.png"; DestDir: "{app}\wxPython\demo\bmp_source"; Components: demo
131 Source: "demo\bmp_source\*.ico"; DestDir: "{app}\wxPython\demo\bmp_source"; Components: demo
133 Source: "demo\data\*.htm"; DestDir: "{app}\wxPython\demo\data"; Components: demo
134 Source: "demo\data\*.html"; DestDir: "{app}\wxPython\demo\data"; Components: demo
135 Source: "demo\data\*.py"; DestDir: "{app}\wxPython\demo\data"; Components: demo
136 Source: "demo\data\*.png"; DestDir: "{app}\wxPython\demo\data"; Components: demo
137 Source: "demo\data\*.bmp"; DestDir: "{app}\wxPython\demo\data"; Components: demo
138 Source: "demo\data\*.i"; DestDir: "{app}\wxPython\demo\data"; Components: demo
139 ;;Source: "demo\data\*.h"; DestDir: "{app}\wxPython\demo\data"; Components: demo
140 Source: "demo\data\*.txt"; DestDir: "{app}\wxPython\demo\data"; Components: demo
141 Source: "demo\data\*.wav"; DestDir: "{app}\wxPython\demo\data"; Components: demo
142 Source: "demo\data\*.wdr"; DestDir: "{app}\wxPython\demo\data"; Components: demo
143 Source: "demo\data\*.xrc"; DestDir: "{app}\wxPython\demo\data"; Components: demo
144 Source: "demo\data\*.gif"; DestDir: "{app}\wxPython\demo\data"; Components: demo
146 Source: "demo\dllwidget\*.cpp"; DestDir: "{app}\wxPython\demo\dllwidget"; Components: demo
147 Source: "demo\dllwidget\*.py"; DestDir: "{app}\wxPython\demo\dllwidget"; Components: demo
148 Source: "demo\dllwidget\Makefile"; DestDir: "{app}\wxPython\demo\dllwidget"; Components: demo
149 Source: "demo\dllwidget\makefile.*"; DestDir: "{app}\wxPython\demo\dllwidget"; Components: demo
151 Source: "README.txt"; DestDir: "{app}\wxPython\docs"; Flags: isreadme; Components: core
152 Source: "CHANGES.txt"; DestDir: "{app}\wxPython\docs"; Components: core
153 Source: "licence\*.txt"; DestDir: "{app}\wxPython\docs\licence"; Components: core
154 Source: "%(WXDIR)s\docs\htmlhelp\wx.chm"; DestDir: "{app}\wxPython\docs"; Components: docs
155 Source: "%(WXDIR)s\docs\htmlhelp\ogl.chm"; DestDir: "{app}\wxPython\docs"; Components: docs
156 Source: "docs\*.txt"; DestDir: "{app}\wxPython\docs"; Components: docs
157 Source: "docs\*.css"; DestDir: "{app}\wxPython\docs"; Components: docs
158 Source: "docs\*.html"; DestDir: "{app}\wxPython\docs"; Components: docs
159 Source: "docs\*.conf"; DestDir: "{app}\wxPython\docs"; Components: docs
160 Source: "docs\screenshots\*.png"; DestDir: "{app}\wxPython\docs\screenshots"; Components: docs
162 Source: "wxPython\tools\*.py"; DestDir: "{app}\wxPython\tools"; Components: core
163 Source: "wxPython\tools\XRCed\*.txt"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
164 Source: "wxPython\tools\XRCed\sawfishrc"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
165 Source: "wxPython\tools\XRCed\*.py"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
166 Source: "wxPython\tools\XRCed\*.xrc"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
167 Source: "wxPython\tools\XRCed\*.ico"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
168 Source: "wxPython\tools\XRCed\*.png"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
169 Source: "wxPython\tools\XRCed\*.sh"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
170 Source: "wxPython\tools\XRCed\src-images\*.png"; DestDir: "{app}\wxPython\tools\XRCed\src-images"; Components: core
172 Source: "scripts\*.bat"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
173 Source: "scripts\*.py"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
174 Source: "scripts\helpviewer"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
175 Source: "scripts\img2png"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
176 Source: "scripts\img2py"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
177 Source: "scripts\img2xpm"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
178 Source: "scripts\pyalacarte"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
179 Source: "scripts\pyalamode"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
180 Source: "scripts\pyshell"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
181 Source: "scripts\pycrust"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
182 Source: "scripts\pywrap"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
183 Source: "scripts\xrced"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
185 Source: "samples\doodle\*.py"; DestDir: "{app}\wxPython\samples\doodle"; Components: samples
186 Source: "samples\doodle\*.txt"; DestDir: "{app}\wxPython\samples\doodle"; Components: samples
187 Source: "samples\doodle\sample.ddl"; DestDir: "{app}\wxPython\samples\doodle"; Components: samples
188 Source: "samples\doodle\superdoodle.iss"; DestDir: "{app}\wxPython\samples\doodle"; Components: samples
190 Source: "samples\wxProject\*.txt"; DestDir: "{app}\wxPython\samples\wxProject"; Components: samples
191 Source: "samples\wxProject\*.py"; DestDir: "{app}\wxPython\samples\wxProject"; Components: samples
193 Source: "samples\StyleEditor\*.txt"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
194 Source: "samples\StyleEditor\*.py"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
195 Source: "samples\StyleEditor\*.cfg"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
197 Source: "samples\pySketch\*.py"; DestDir: "{app}\wxPython\samples\pySketch"; Components: samples
198 Source: "samples\pySketch\images\*.bmp"; DestDir: "{app}\wxPython\samples\pySketch\images"; Components: samples
200 Source: "samples\frogedit\*.py"; DestDir: "{app}\wxPython\samples\frogedit"; Components: samples
202 Source: "samples\hangman\*.py"; DestDir: "{app}\wxPython\samples\hangman"; Components: samples
204 Source: "samples\embedded\*.py"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
205 Source: "samples\embedded\*.cpp"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
206 Source: "samples\embedded\*.txt"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
207 Source: "samples\embedded\*.vc"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
208 Source: "samples\embedded\*.unx"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
209 Source: "samples\embedded\*.ico"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
210 Source: "samples\embedded\*.xpm"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
212 Source: "samples\wx_examples\basic\*.py"; DestDir: "{app}\wxPython\samples\wx_examples\basic"; Components: samples
213 Source: "samples\wx_examples\hello\*.py"; DestDir: "{app}\wxPython\samples\wx_examples\hello"; Components: samples
214 Source: "samples\wx_examples\hello\*.jpg"; DestDir: "{app}\wxPython\samples\wx_examples\hello"; Components: samples
216 Source: "src\winxp.manifest"; DestDir: "{code:GetPythonDir}"; DestName: "python.exe.manifest"; Components: core
217 Source: "src\winxp.manifest"; DestDir: "{code:GetPythonDir}"; DestName: "pythonw.exe.manifest"; Components: core
220 ;;------------------------------------------------------------
223 ;; Compile the .py files
224 Filename: "{code:GetPythonDir}\python.exe"; Parameters: "{code:GetPythonDir}\Lib\compileall.py {app}\wxPython {app}\wx"; Description: "Compile Python .py files to .pyc"; Flags: postinstall; Components: core
226 ;; Recreate the tool scripts to use the paths on the users machine
227 Filename: "{code:GetPythonDir}\python.exe"; Parameters: "CreateBatchFiles.py"; WorkingDir: "{code:GetPythonDir}\Scripts"; Description: "Create batch files for tool scripts"; Flags: postinstall; Components: core
230 ;;------------------------------------------------------------
233 Name: "{group}\Run the wxPython DEMO"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "{app}\wxPython\demo"; Parameters: "demo.py"; IconFilename: "{app}\wxPython\demo\wxpdemo.ico"; Components: core
234 Name: "{group}\PyCrust"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pycrust"; IconFilename: "{app}\wxPython\py\PyCrust.ico"; Components: core
235 Name: "{group}\PyShell"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pyshell"; IconFilename: "{app}\wxPython\py\PyCrust.ico"; Components: core
236 Name: "{group}\PyAlaMode"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pyalamode"; IconFilename: "{app}\wxPython\py\PyCrust.ico"; Components: core
237 Name: "{group}\PyAlaCarte"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pyalacarte"; IconFilename: "{app}\wxPython\py\PyCrust.ico"; Components: core
238 Name: "{group}\wxWindows Reference"; Filename: "{app}\wxPython\docs\wx.chm"; Components: docs
239 Name: "{group}\wxOGL Reference"; Filename: "{app}\wxPython\docs\ogl.chm"; Components: docs
240 Name: "{group}\licence.txt"; Filename: "{app}\wxPython\docs\licence\licence.txt"; Components: core
241 Name: "{group}\README.txt"; Filename: "{app}\wxPython\docs\README.txt"; Components: core
242 Name: "{group}\CHANGES.txt"; Filename: "{app}\wxPython\docs\CHANGES.txt"; Components: core
243 Name: "{group}\Sample Apps"; Filename: "{app}\wxPython\samples"; Components: samples
244 Name: "{group}\Resource Editor"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\xrced"; IconFilename: "{app}\wxPython\Tools\XRCed\xrced.ico"; Components: core
245 Name: "{group}\wxPython Docs"; Filename: "{app}\wxPython\docs\wxPythonDocs.html"; Components: docs
248 ;;------------------------------------------------------------
251 Type: files; Name: "{app}\wxPython\*.pyc";
252 Type: files; Name: "{app}\wxPython\*.pyo";
253 Type: files; Name: "{app}\wxPython\*.pyd";
254 Type: files; Name: "{app}\wxPython\lib\*.pyc";
255 Type: files; Name: "{app}\wxPython\lib\*.pyo";
256 Type: files; Name: "{app}\wxPython\lib\editor\*.pyc";
257 Type: files; Name: "{app}\wxPython\lib\editor\*.pyo";
258 Type: files; Name: "{app}\wxPython\lib\mixins\*.pyc";
259 Type: files; Name: "{app}\wxPython\lib\mixins\*.pyo";
260 Type: files; Name: "{app}\wxPython\lib\PyCrust\*.pyc";
261 Type: files; Name: "{app}\wxPython\lib\PyCrust\*.pyo";
262 Type: files; Name: "{app}\wxPython\lib\colourchooser\*.pyc";
263 Type: files; Name: "{app}\wxPython\lib\colourchooser\*.pyo";
264 Type: files; Name: "{app}\wxPython\py\*.pyc";
265 Type: files; Name: "{app}\wxPython\py\*.pyo";
266 Type: files; Name: "{app}\wxPython\py\tests\*.pyc";
267 Type: files; Name: "{app}\wxPython\py\tests\*.pyo";
268 Type: files; Name: "{app}\wxPython\py\wxd\*.pyc";
269 Type: files; Name: "{app}\wxPython\py\wxd\*.pyo";
270 Type: files; Name: "{app}\wxPython\tools\*.pyc";
271 Type: files; Name: "{app}\wxPython\tools\*.pyo";
272 Type: files; Name: "{app}\wxPython\tools\XRCed\*.pyc";
273 Type: files; Name: "{app}\wxPython\tools\XRCed\*.pyo";
274 Type: files; Name: "{app}\wxPython\demo\*.pyc";
275 Type: files; Name: "{app}\wxPython\demo\*.pyo";
276 Type: files; Name: "{app}\wxPython\demo\data\showTips";
277 Type: files; Name: "{app}\wxPython\tools\*.pyc";
278 Type: files; Name: "{app}\wxPython\tools\*.pyo";
279 Type: files; Name: "{app}\wxPython\tools\XRCed\*.pyc";
280 Type: files; Name: "{app}\wxPython\tools\XRCed\*.pyo";
281 Type: files; Name: "{app}\wxPython\samples\doodle\*.pyc";
282 Type: files; Name: "{app}\wxPython\samples\doodle\*.pyo";
283 Type: files; Name: "{app}\wxPython\samples\wxProject\*.pyc";
284 Type: files; Name: "{app}\wxPython\samples\wxProject\*.pyo";
285 Type: files; Name: "{app}\wxPython\samples\StyleEditor\*.pyc";
286 Type: files; Name: "{app}\wxPython\samples\StyleEditor\*.pyo";
287 Type: files; Name: "{app}\wxPython\samples\frogedit\*.pyc";
288 Type: files; Name: "{app}\wxPython\samples\frogedit\*.pyo";
289 Type: files; Name: "{app}\wxPython\samples\hangman\*.pyc";
290 Type: files; Name: "{app}\wxPython\samples\hangman\*.pyo";
291 Type: files; Name: "{app}\wxPython\samples\hangman\*.txt";
292 Type: files; Name: "{app}\wxPython\samples\wx_examples\basic\*.pyc";
293 Type: files; Name: "{app}\wxPython\samples\wx_examples\basic\*.pyo";
294 Type: files; Name: "{app}\wxPython\samples\wx_examples\hello\*.pyc";
295 Type: files; Name: "{app}\wxPython\samples\wx_examples\hello\*.pyo";
296 Type: files; Name: "{app}\wxPython\demo\data\*.pyc";
297 Type: files; Name: "{app}\wxPython\demo\data\*.pyo";
298 Type: files; Name: "{app}\wxPython\demo\dllwidget\*.pyc";
299 Type: files; Name: "{app}\wxPython\demo\dllwidget\*.pyo";
300 Type: files; Name: "{app}\wxPython\samples\embedded\*.pyc";
301 Type: files; Name: "{app}\wxPython\samples\embedded\*.pyo";
302 Type: files; Name: "{app}\wxPython\samples\pySketch\*.pyc";
303 Type: files; Name: "{app}\wxPython\samples\pySketch\*.pyo";
304 Type: files; Name: "{app}\wx\*.pyc";
305 Type: files; Name: "{app}\wx\*.pyo";
306 Type: files; Name: "{app}\wx\lib\*.pyc";
307 Type: files; Name: "{app}\wx\lib\*.pyo";
308 Type: files; Name: "{app}\wx\lib\colourchooser\*.pyc";
309 Type: files; Name: "{app}\wx\lib\colourchooser\*.pyo";
310 Type: files; Name: "{app}\wx\lib\editor\*.pyc";
311 Type: files; Name: "{app}\wx\lib\editor\*.pyo";
312 Type: files; Name: "{app}\wx\lib\mixins\*.pyc";
313 Type: files; Name: "{app}\wx\lib\mixins\*.pyo";
314 Type: files; Name: "{app}\wx\py\*.pyc";
315 Type: files; Name: "{app}\wx\py\*.pyo";
316 Type: files; Name: "{app}\wx\tools\*.pyc";
317 Type: files; Name: "{app}\wx\tools\*.pyo";
318 Type: files; Name: "{app}\wx\tools\XRCed\*.pyc";
319 Type: files; Name: "{app}\wx\tools\XRCed\*.pyo";
327 #----------------------------------------------------------------------
337 function InitializeSetup(): Boolean;
339 if not RegQueryStringValue(HKEY_LOCAL_MACHINE,
340 'Software\Python\PythonCore\%(PYTHONVER)s\InstallPath',
341 '', PythonDir) then begin
343 if not RegQueryStringValue(HKEY_CURRENT_USER,
344 'Software\Python\PythonCore\%(PYTHONVER)s\InstallPath',
345 '', PythonDir) then begin
347 MsgBox('No installation of Python %(PYTHONVER)s found in registry.' + #13 +
348 'Be sure to enter a pathname that places wxPython on the PYTHONPATH',
349 mbConfirmation, MB_OK);
350 PythonDir := 'C:\Put a directory on PYTHONPATH here\';
353 InstallDir := PythonDir;
359 function GetPythonDir(Default: String): String;
364 function GetInstallDir(Default: String): String;
366 Result := InstallDir;
371 function NextButtonClick(CurPage: Integer): Boolean;
377 if CurPage <> wpSelectDir then Exit;
378 FileName := WizardDirValue() + '\wxPython\unins000.exe';
379 if FileExists(FileName) then begin
380 ResultCode := MsgBox('A prior wxPython installation was found in this directory. It' + #13 +
381 'is recommended that it be uninstalled first.' + #13#13 +
383 mbConfirmation, MB_YESNO);
384 if ResultCode = IDYES then begin
385 InstExec(FileName, '/SILENT', WizardDirValue()+'\wxPython', True, False, SW_SHOWNORMAL, ResultCode);
397 #----------------------------------------------------------------------
401 WXDLL
= PYTHONVER
= None
403 proc
= os
.popen(r
"dumpbin /imports wxPython\wxc.pyd", "r")
404 lines
= proc
.readlines()
407 if line
[:6] == " wx":
410 if line
[:10] == " python":
411 PYTHONVER
= line
[10] + '.' + line
[11]
413 if WXDLL
and PYTHONVER
:
414 return WXDLL
, PYTHONVER
417 #----------------------------------------------------------------------
419 locale_template
= 'Source: "%s"; DestDir: "{app}\%s"; Components: core'
421 def build_locale_string():
424 def walk_helper(lst
, dirname
, files
):
426 filename
= os
.path
.join(dirname
, f
)
427 if not os
.path
.isdir(filename
):
428 lst
.append( locale_template
% (filename
, dirname
) )
430 os
.path
.walk('wxPython\\locale', walk_helper
, stringlst
)
431 return '\n'.join(stringlst
)
434 #----------------------------------------------------------------------
439 execfile("wxPython/__version__.py", verglob
)
441 VERSION
= verglob
["wxVERSION_STRING"]
442 SHORTVER
= VERSION
[:3]
444 WXDLL
, PYTHONVER
= find_DLLs()
446 PYVER
= "Py" + PYTHONVER
[0] + PYTHONVER
[2]
447 WXDIR
= os
.environ
["WXWIN"]
448 WXPYDIR
= os
.path
.join(WXDIR
, "wxPython")
449 SYSDIR
= r
"C:\WINNT\SYSTEM32"
450 ISSFILE
= "__wxPython.iss"
451 IFSFILE
= "__wxPython.ifs"
452 LOCALE
= build_locale_string()
454 if PYTHONVER
>= "2.2":
455 IF22
= r
"InstallDir := InstallDir + '\Lib\site-packages';"
459 # Starting with 2.3.3 the hybrid build is the release build too, so
460 # no need to label it that way.
461 ##if WXDLL.find("h") != -1:
462 ## PYVER = PYVER + "-hybrid"
465 if len(sys
.argv
) > 1 and sys
.argv
[1] == "UNICODE=1":
466 MSLU
=r
'Source: "%(WXDIR)s\lib\unicows.dll"; DestDir: "{code:GetPythonDir}"; Components: core' % vars()
468 f
= open(ISSFILE
, "w")
469 f
.write(ISS_Template
% vars())
472 f
= open(IFSFILE
, "w")
473 f
.write(IFS_Template
% vars())
476 os
.system(ISCC
% (os
.environ
['TOOLS'], ISSFILE
))
484 #----------------------------------------------------------------------
486 if __name__
== "__main__":
491 #----------------------------------------------------------------------