【发布时间】:2021-07-23 18:54:42
【问题描述】:
我正在使用 cx_Freeze 将 python 脚本编译成 .msi 安装文件。在阅读this very helpful thread 后,我已经能够在安装过程中生成已编译的 exe 程序的快捷方式。此外,我想在安装过程中向用户显示某种消息。是否可以相应地配置 cx_Freeze ?如果没有,那还有什么办法呢?
我的代码的相关(简化)位是:
from cx_Freeze import setup, Executable
options = {'optimize': 2}
executables = [Executable('program.py', base='Win32GUI', targetName='program.exe',
shortcutName='program', shortcutDir='ProgramMenuFolder')]
setup(name='program', options=options, executables=executables)
【问题讨论】:
标签: python windows-installer cx-freeze