| 1 | ; Script generated by the Inno Setup Script Wizard.
|
|---|
| 2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|---|
| 3 |
|
|---|
| 4 | ; This is the whole ball of wax for an Inno installer for Python.
|
|---|
| 5 | ; To use, download Inno Setup from http://www.jrsoftware.org/isdl.htm/,
|
|---|
| 6 | ; install it, and double-click on this file. That launches the Inno
|
|---|
| 7 | ; script compiler. The GUI is extemely simple, and has only one button
|
|---|
| 8 | ; you may not recognize instantly: click it. You're done. It builds
|
|---|
| 9 | ; the installer into PCBuild/Python-2.2a1.exe. Size and speed of the
|
|---|
| 10 | ; installer are competitive with the Wise installer; Inno uninstall
|
|---|
| 11 | ; seems much quicker than Wise (but also feebler, and the uninstall
|
|---|
| 12 | ; log is in some un(human)readable binary format).
|
|---|
| 13 | ;
|
|---|
| 14 | ; What's Done
|
|---|
| 15 | ; -----------
|
|---|
| 16 | ; All the usual Windows Python files are installed by this now.
|
|---|
| 17 | ; All the usual Windows Python Start menu entries are created and
|
|---|
| 18 | ; work fine.
|
|---|
| 19 | ; .py, .pyw, .pyc and .pyo extensions are registered.
|
|---|
| 20 | ; PROBLEM: Inno uninstall does not restore their previous registry
|
|---|
| 21 | ; associations (if any). Wise did. This will make life
|
|---|
| 22 | ; difficult for alpha (etc) testers.
|
|---|
| 23 | ; The Python install is fully functional for "typical" uses.
|
|---|
| 24 | ;
|
|---|
| 25 | ; What's Not Done
|
|---|
| 26 | ; ---------------
|
|---|
| 27 | ; None of "Mark Hammond's" registry entries are written.
|
|---|
| 28 | ; No installation of files is done into the system dir:
|
|---|
| 29 | ; The MS DLLs aren't handled at all by this yet.
|
|---|
| 30 | ; Python22.dll is unpacked into the main Python dir.
|
|---|
| 31 | ;
|
|---|
| 32 | ; Inno can't do different things on NT/2000 depending on whether the user
|
|---|
| 33 | ; has Admin privileges, so I don't know how to "solve" either of those,
|
|---|
| 34 | ; short of building two installers (one *requiring* Admin privs, the
|
|---|
| 35 | ; other not doing anything that needs Admin privs).
|
|---|
| 36 | ;
|
|---|
| 37 | ; Inno has no concept of variables, so lots of lines in this file need
|
|---|
| 38 | ; to be fiddled by hand across releases. Simplest way out: stick this
|
|---|
| 39 | ; file in a giant triple-quoted r-string (note that backslashes are
|
|---|
| 40 | ; required all over the place here -- forward slashes DON'T WORK in
|
|---|
| 41 | ; Inno), and use %(yadda)s string interpolation to do substitutions; i.e.,
|
|---|
| 42 | ; write a very simple Python program to *produce* this script.
|
|---|
| 43 |
|
|---|
| 44 | [Setup]
|
|---|
| 45 | AppName=Python and combined Win32 Extensions
|
|---|
| 46 | AppVerName=Python 2.2.2 and combined Win32 Extensions 150
|
|---|
| 47 | AppId=Python 2.2.2.150
|
|---|
| 48 | AppVersion=2.2.2.150
|
|---|
| 49 | AppCopyright=Python is Copyright © 2001 Python Software Foundation. Win32 Extensions are Copyright © 1996-2001 Greg Stein and Mark Hammond.
|
|---|
| 50 |
|
|---|
| 51 | ; Default install dir; value of {app} later (unless user overrides).
|
|---|
| 52 | ; {sd} = system root drive, probably "C:".
|
|---|
| 53 | DefaultDirName={sd}\Python22
|
|---|
| 54 | ;DefaultDirName={pf}\Python
|
|---|
| 55 |
|
|---|
| 56 | ; Start menu folder name; value of {group} later (unless user overrides).
|
|---|
| 57 | DefaultGroupName=Python 2.2
|
|---|
| 58 |
|
|---|
| 59 | ; Point SourceDir to one above PCBuild = src.
|
|---|
| 60 | ; means this script can run unchanged from anyone's CVS tree, no matter
|
|---|
| 61 | ; what they called the top-level directories.
|
|---|
| 62 | SourceDir=.
|
|---|
| 63 | OutputDir=..
|
|---|
| 64 | OutputBaseFilename=Python-2.2.2-Win32-150-Setup
|
|---|
| 65 |
|
|---|
| 66 | AppPublisher=PythonLabs at Digital Creations
|
|---|
| 67 | AppPublisherURL=http://www.python.org
|
|---|
| 68 | AppSupportURL=http://www.python.org
|
|---|
| 69 | AppUpdatesURL=http://www.python.org
|
|---|
| 70 |
|
|---|
| 71 | AlwaysCreateUninstallIcon=true
|
|---|
| 72 | ChangesAssociations=true
|
|---|
| 73 | UninstallLogMode=new
|
|---|
| 74 | AllowNoIcons=true
|
|---|
| 75 | AdminPrivilegesRequired=true
|
|---|
| 76 | UninstallDisplayIcon={app}\pyc.ico
|
|---|
| 77 | WizardDebug=false
|
|---|
| 78 |
|
|---|
| 79 | ; The fewer screens the better; leave these commented.
|
|---|
| 80 |
|
|---|
| 81 | Compression=bzip
|
|---|
| 82 | InfoBeforeFile=LICENSE.txt
|
|---|
| 83 | ;InfoBeforeFile=Misc\NEWS
|
|---|
| 84 |
|
|---|
| 85 | ; uncomment the following line if you want your installation to run on NT 3.51 too.
|
|---|
| 86 | ; MinVersion=4,3.51
|
|---|
| 87 |
|
|---|
| 88 | [Types]
|
|---|
| 89 | Name: normal; Description: Select desired components; Flags: iscustom
|
|---|
| 90 |
|
|---|
| 91 | [Components]
|
|---|
| 92 | Name: main; Description: Python and Win32 Extensions; Types: normal
|
|---|
| 93 | Name: docs; Description: Python documentation (HTML); Types: normal
|
|---|
| 94 | Name: tk; Description: TCL/TK, tkinter, and Idle; Types: normal
|
|---|
| 95 | Name: tools; Description: Python utility scripts (Tools\); Types: normal
|
|---|
| 96 | Name: test; Description: Python test suite (Lib\test\); Types: normal
|
|---|
| 97 |
|
|---|
| 98 | [Tasks]
|
|---|
| 99 | Name: extensions; Description: Register file associations (.py, .pyw, .pyc, .pyo); Components: main; Check: IsAdminLoggedOn
|
|---|
| 100 |
|
|---|
| 101 | [Files]
|
|---|
| 102 | ; Caution: Using forward slashes instead screws up in amazing ways.
|
|---|
| 103 | ; Unknown: By the time Components (and other attrs) are added to these lines, they're
|
|---|
| 104 | ; going to get awfully long. But don't see a way to continue logical lines across
|
|---|
| 105 | ; physical lines.
|
|---|
|
|---|