+ 1
[Solved] Python get permission to write in program files.
I want to make an python installer that installs a program(It may or may not be made in python). I can later freeze it with pyinstaller, cx_Freeze, etc. I want to put the program data in Program Files, put a shortcut in the Start menu files location... The problem is that I don't have permission to write in Program Files. When you run other installers, windows creates a "Do you want to allow this app to make changes to your device?" dialogue. How to request Windows to get access to write in Program Files and not make the user run the program as an administrator?
2 Réponses
+ 2
I wanted to run the program as admin from the script. The issue is solved. See :
https://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-JUMP_LINK__&&__python__&&__JUMP_LINK-script
https://stackoverflow.com/questions/19672352/how-to-run-python-script-with-elevated-privilege-on-windows/19719292
+ 1
Go to property of the installer. Then go to compatibility, then on the left corner "change settings for all users", then check the box with "open program with administrator permission" or so cuz my pc language is german. And now apply all changes, so every user will have to open it as admin.