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)
  • [设置]中添加defaultgroupnameinfobeforefilelicensefile 章节

0.4.0.0

  • 支持服务命令行样式选项
  • 重写iss文件周围的代码

0.3.0.0

  • 改进Innosetup安装路径检测
  • 添加inno-setup-exe选项

0.2.0.0

  • 处理py2exe的命令选项
  • 添加捆绑VCR选项

0.1.0.0

  • 首次发布

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java动态地将圆添加到Arraylist   什么是好的“错误检查”模式(Java)?   java是我们可以在应用程序中使用的云服务,它需要存储最大大小为5MB的小文件   JavaGooglePhotosAPI是静态内容上传项目的永久url   java AES密钥存储   java文件正在下载,但没有任何内容   每次循环迭代和threadsleep的java日志记录都是不好的做法?   java不会切换到另一个。单击submit时使用jsp。春季mvc   java我很难从我的maclaurin系列中获得sin x的准确输出   java使用类似的<Object>?   需要java Hibernate映射吗?   java如何在https和客户端证书请求后面生成web服务代理   java如何通过注释有条件地使用自定义JsonSerializer   java如何在html页面和Restful WebResource方法之间实现JaxB?   读取文件Libgdx Android时发生java错误   java如何在处理主活动之前从另一个方法中获取值?   java在一个SQLquery中使用多个语句,还是使用批处理?