distutils扩展模块-通过innosetup创建安装程序。
innosetup的Python项目详细描述
功能
- 您可以使用定制的innosetup脚本。
- 安装程序元数据覆盖setup()元数据
- 从setup()元数据生成appid(guid) 请参阅innosetup.innoscript.appid属性。
- 捆绑exe和com dll以及依赖的libs和资源
- 捆绑msvcr和mfc及其清单
- 捆绑所有安装的innosetup语言文件 (如果没有有效的[语言]部分。)
- 创建窗口的快捷方式
- 注册COM服务器和服务
- 使用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”错误。
0.6.6,0.6.7
- 更新自述和安装脚本。
0.6.5
- 将下载url移动到github。
0.6.4
- 将存储库移动到github。
- 添加setup.py脚本。
0.6.3
- 更改版本控制策略(删除内部版本号)。
- 将utf-8 bom添加到jerome ortais,thanx的.iss文件中。
- 选择Jerome Ortais,Thanx为[setup]/licensefile复制的文件。
0.6.0.2
- 添加“创建启动快捷方式”选项。
0.6.0.1
- 通过surgo,thanx修复元数据和unicode。
- 将default_iss设置为空,因为inno setup 5.3.9已释放。
- 修复一个在Windows7上包含minwin的apiset存根dll的问题。
0.6.0.0
- 支持绑定tcl文件
- 更改outputbasefilename
0.5.0.1
- 改进更新安装支持
0.5.0.0
- 添加默认值、清单、srcname、srcnames
- 添加zip选项
- 修复bundle_files=1的选项问题(总是bundle pythonxx.dll)
- 在[设置]中添加defaultgroupname,infobeforefile,licensefile 章节
0.4.0.0
- 支持服务命令行样式选项
- 重写iss文件周围的代码
0.3.0.0
- 改进Innosetup安装路径检测
- 添加inno-setup-exe选项
0.2.0.0
- 处理py2exe的命令选项
- 添加捆绑VCR选项
0.1.0.0
- 首次发布