通过对cx_Freeze / windist.py进行小的更改,我能够解决此问题。在add_config()的第61行中,我更改了:
msilib.add_data(self.db, "Shortcut", [("S_APP_%s" % index, executable.shortcutDir, executable.shortcutName, "TARGETDIR", "[TARGETDIR]%s" % baseName, None, None, None, None, None, None, None)])至
msilib.add_data(self.db, "Shortcut", [("S_APP_%s" % index, executable.shortcutDir, executable.shortcutName, "TARGETDIR", "[TARGETDIR]%s" % baseName, None, None, None, None, None, None, "TARGETDIR")]) # <--- Working directory.谢谢大家。



