Python Forum

Full Version: Building a .msi with Admin permissions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to create an executable from my python/tkinter code that can be installed by other users. I have been able to successfully do this with cx_Freeze, however, the .exe is unable to write to files in the working or specified directories. After researching this issue, I discovered that this may be because the .exe does not have the appropriate read/write permissions.
Sure enough, when I tried running the .exe with Admin permissions, I was able to perform the relevant functions. Since this worked, I was wondering whether there is a way to build the cx_Freeze .msi while specifying user permissions in the setup.py file. I have not been able to find any documentation about this, so I am hoping that you can help with this. Any help is greatly appreciated!