Cx_Freeze MSI error

I have successfully compiled my python file to cx_Freeze, but when I click on the application I get the following error:

link to error image

Here is mine 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})

      

Can anyone help me? Any help would be appreciated.

+3


source to share





All Articles