Skip to main content

A Python innosetup library

Requirements

Features

  • You can use your customized InnoSetup Script.

  • installer metadata over setup() metadata

  • generate AppId(GUID) from setup() metadata See the innosetup.InnoScript.appid property.

  • bundle exe and com dll and dependent libs and resources

  • bundle msvcr and mfc and their manifest

  • bundle all installed InnoSetup’s language file (If there is no valid [Languages] section.)

  • create windows exe’s shortcut

  • register com_server and service

  • check the Windows version with Python version

  • fix a problem py2exe.mf misses some modules (ex. win32com.shell)

Example

from distutils.core import setup
import py2exe, innosetup

# All options are same as py2exe options.
setup(
    name='example',
    version='1.0.0.0',
    license='PSF or other',
    author='you',
    author_email='you@your.domain',
    description='description',
    url='http://www.your.domain/example', # generate AppId from this url
    options={
        'py2exe': {
            # `innosetup` gets the `py2exe`'s options.
            'compressed': True,
            'optimize': 2,
            'bundle_files': 3,
            },
        'innosetup': {
            # user defined iss file path or iss string
            'inno_script': innosetup.DEFAULT_ISS, # default is ''
            # bundle msvc files
            'bundle_vcr': True, # default is True
            # zip setup file
            'zip': False, # default is False, bool() or zip file name
            # create shortcut to startup if you want.
            'regist_startup': True, # default is False
            }
        },
    com_server=[
        {'modules': ['your_com_server_module'], 'create_exe': False},
        ],
    # and other metadata ...
    )

Do the command setup.py innosetup. Then you get InnoSetup script file named dist\distutils.iss and the installation file named dist\<name>-<version>.exe.

Changes

0.6.8

  • fix a ‘MinVersion’ bug.

0.6.6, 0.6.7

  • update readme and setup script.

0.6.5

  • move download url to github.

0.6.4

  • move repository to github.

  • add a setup.py script.

0.6.3

  • change versioning policy (remove build number).

  • add utf-8 bom to .iss file by Jerome Ortais, thanx.

  • pick up COPYING file for [setup]/LicenseFile by Jerome Ortais, thanx.

0.6.0.2

  • add regist_startup option for create shortcut to startup.

0.6.0.1

  • fix metadata and unicode by surgo, thanx.

  • set DEFAULT_ISS to empty because Inno Setup 5.3.9 is released.

  • fix a problem that py2exe includes MinWin’s ApiSet Stub DLLs on Windows 7.

0.6.0.0

  • support bundling tcl files

  • change OutputBaseFilename

0.5.0.1

  • improve update install support

0.5.0.0

  • add DEFAULT_ISS, manifest, srcname, srcnames

  • add zip option

  • fix bundle_files=1 option problem (always bundle pythonXX.dll)

  • add DefaultGroupName, InfoBeforeFile, LicenseFile into [Setup] section

0.4.0.0

  • support service cmdline_style options

  • rewrite codes around iss file

0.3.0.0

  • improve the InnoSetup instllation path detection

  • add inno_setup_exe option

0.2.0.0

  • handle py2exe’s command options

  • add bundle_vcr option

0.1.0.0

  • first release

Metadata

Release files for innosetup 0.6.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for innosetup 0.6.9
File Size Uploaded
innosetup-0.6.9.zip 11.7 kB Details

Release files / innosetup-0.6.9.zip

Download URL innosetup-0.6.9.zip
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
69b2c1c17664c50bd4cf7ec60985970eba90be5f6e1f0f37602be3aa7ea4bad1
BLAKE2b-256 checksum
How to use checksums
75a5362d21e201574ddd0401718a115957094853aa9f5ef3bbc9431f0ef94c0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.6.9 This release

1 release file

0.6.8

1 release file

0.6.7

1 release file

0.6.6

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.0.2

1 release file

0.6.0.1

1 release file

0.6.0.0

1 release file

0.5.0.1

1 release file

0.5.0.0

1 release file

0.4.0.0

1 release file

0.1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page