cx_Freeze MSI错误

时间:2017-06-01 13:08:49

标签: python windows-installer cx-freeze

我已成功将我的python文件编译为cx_Freeze,但是当我点击该应用程序时,我收到以下错误:

error image link

这是我的setup.py

import sys
from cx_Freeze import setup, Executable

company_name = 'Vagif Programs'
product_name = 'BananaCell'

bdist_msi_options = {
    'upgrade_code': '{66620F3A-DC3A-11E2-B341-002219E9B01E}',
    'add_to_path': False,
    'initial_target_dir': r'[ProgramFilesFolder]\%s\%s' % (company_name, 
product_name),
    }

build_exe_options = {
    'includes': ['tkinter', 'tkinter.filedialog', 'openpyxl.utils'],
    }


base = None
if sys.platform == 'win32':
    base = 'Win32GUI'


exe = Executable(script='comparing.py',
                 base=base,
                 icon='icon.ico',
                 shortcutName='BananaCell',
                 shortcutDir='DesktopFolder'
                )



setup(name=product_name,
      version='1.0.0',
      description='blah',
      executables=[exe],
      options={
          'bdist_msi': bdist_msi_options,
          'build_exe': build_exe_options})

任何人都可以帮助我吗?任何帮助将不胜感激。

0 个答案:

没有答案