跳转到主要内容

distutils 扩展模块 - 使用 InnoSetup 创建安装程序。

项目描述

需求

功能

  • 您可以使用自定义的 InnoSetup 脚本。

  • 安装程序元数据覆盖 setup() 元数据

  • 从 setup() 元数据生成 AppId(GUID) 看见 innosetup.InnoScript.appid 属性。

  • 捆绑 exe 和 com dll 及其依赖库和资源

  • 捆绑 msvcr 和 mfc 及其清单

  • 捆绑所有已安装的 InnoSetup 的语言文件(如果存在有效的 [Languages] 部分。)

  • 创建 windows exe 的快捷方式

  • 注册 com_serverservice

  • 使用Python版本检查Windows版本

  • 修复问题:py2exe.mf缺少一些模块(例如win32com.shell)

示例

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 ...
    )

执行命令 setup.py innosetup。然后你会得到一个名为 dist\distutils.iss 的InnoSetup脚本文件和一个名为 dist\<name>-<version>.exe 的安装文件。

变更

0.6.8

  • 修复了“MinVersion”的bug。

0.6.6, 0.6.7

  • 更新了readme和setup脚本。

0.6.5

  • 将下载链接移至GitHub。

0.6.4

  • 将仓库移至GitHub。

  • 添加了setup.py脚本。

0.6.3

  • 更改版本策略(移除构建号)。

  • Jerome Ortais添加了UTF-8 BOM到.iss文件,感谢。

  • Jerome Ortais提供了[cite]COPYING[/cite]文件用于[cite][setup]/LicenseFile[/cite],感谢。

0.6.0.2

  • 添加了[cite]regist_startup[/cite]选项以创建启动快捷方式。

0.6.0.1

  • 由surgo修复了元数据和Unicode问题,感谢。

  • 由于[cite]Inno Setup 5.3.9[/cite]已发布,将[cite]DEFAULT_ISS[/cite]设置为空。

  • 修复了在Windows 7上[cite]py2exe[/cite]包含MinWin的ApiSet Stub DLLs的问题。

0.6.0.0

  • 支持捆绑tcl文件

  • 更改OutputBaseFilename

0.5.0.1

  • 改进了更新安装支持

0.5.0.0

  • 添加DEFAULT_ISS、manifest、srcname、srcnames

  • 添加[cite]zip[/cite]选项

  • 修复了[cite]bundle_files=1[/cite]选项的问题(始终捆绑pythonXX.dll)

  • 将[cite]DefaultGroupName[/cite]、[cite]InfoBeforeFile[/cite]、[cite]LicenseFile[/cite]添加到[cite][Setup][/cite]部分

0.4.0.0

  • 支持service cmdline_style选项

  • 重写了iss文件周围的代码

0.3.0.0

  • 改进了InnoSetup安装路径检测

  • 添加[cite]inno_setup_exe[/cite]选项

0.2.0.0

  • 处理[cite]py2exe[/cite]的命令选项

  • 添加[cite]bundle_vcr[/cite]选项

0.1.0.0

  • 第一个版本

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

innosetup-0.6.9.zip (11.7 kB 查看散列)

上传时间

支持者:

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面