我想创建一个在setup.py文件中包含exe文件的msi文件
我有下面给出的setup.py
import sys
from cx_Freeze import setup, Executable
includefiles = ['test.exe']
base = None
if sys.platform == "win32":
base = "Win32GUI"
exe = Executable(
script='main.py',
initScript= None
base=base)
setup(
name='test',
version='1.0',
author='sri sri',
options={"build_exe": {
"include_files":includefiles},
},
executables=[exe])
我希望MSI首先运行exe文件。如何将逻辑包含在msi任何回复中都会有很大帮助