How to set shortcut working directory in cx_freeze msi bundle?
I was working on a Python program which deals with SQLite3 databases. I made it as an MSI setup file by using cx_Freeze. Windows shortcuts produced by .msi set-up files generated by cx_Freeze do not provide the working directory property of the shortcut. Thus, when I run the executable using the shortcut created on the desktop, it's creating database files on the desktop itself. This can be changed by providing a different working directory to the shortcut. How do I do that? I was able to fix the problem by making a small change to cx_Freeze/windist.py. In add_config(), line 61, I changed: