I want to create an msi file which include an exe file in setup.py file

I have the setup.py as given below

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

I want the msi to run the exe file first. How to include the logic into msi any reply will be a great help

0 Answers