]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/make_installer_inno4.py
Get/SetTitle only for wxTopLevelWindow (wxMGL part).
[wxWidgets.git] / wxPython / distrib / make_installer_inno4.py
CommitLineData
f58a6c81
KO
1# -*- coding: iso-8859-1 -*-
2#----------------------------------------------------------------------
3# Name: make_installer.py
4# Purpose: A script to create the wxPython windows installer
5#
6# Author: Robin Dunn
7#
8# Created: 30-April-2001
9# RCS-ID: $Id$
10# Copyright: (c) 2003 by Total Control Software
11# Licence: wxWindows license
12#----------------------------------------------------------------------
13
14"""
15This script will generate a setup script for InnoSetup and then run it
16to make the installer executable. If all goes right the proper versions
17of Python and wxWindows (including hybrid/final settings) will all be
18calculated based on what _core_.pyd imports and an appropriate installer
19will be created.
20"""
21
22
23import sys, os, time
24
25KEEP_TEMPS = 1
26ISCC = r"%s\InnoSetup2Ex\ISCC.exe %s"
27
28# see if we can find Inno Setup 4 and use that if so
29USING_INNO4=False
30try:
31 import _winreg as wreg
32 key = wreg.OpenKey(wreg.HKEY_CURRENT_USER, "Software\Bjornar Henden\ISTool4\Prefs")
33 INNO_FOLDER = wreg.QueryValueEx(key,'InnoFolder')[0]
34 USING_INNO4=True
35except:
36 pass
37
38
39#----------------------------------------------------------------------
40
41ISS_Template = r'''
42
43[Setup]
44AppName = wxPython%(SHORTVER)s-%(CHARTYPE)s-%(PYVER)s
45AppVerName = wxPython %(VERSION)s (%(CHARTYPE)s) for Python %(PYTHONVER)s
46OutputBaseFilename = wxPython%(SHORTVER)s-win32-%(CHARTYPE)s-%(VERSION)s-%(PYVER)s
47