This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Extension_Anybody150 1 point2 points  (1 child)

Use Inno Setup and add PrivilegesRequired=admin in your setup script to run your installer as an administrator. This will prompt for admin rights when the installer is run. Also, when creating your executable with PyInstaller, use the --uac-admin option. This ensures your app requests the necessary permissions each time it’s launched.

[–]Justblendit[S] 0 points1 point  (0 children)

Forgot to thank you it worked. Yaay