I have a pyqt application which needs to run with admin rights since it creates some network connections. I have it packaged and working but my users (I bet) will forget to right-click and "Run as administrator" so is there a way in either pyqt or pyinstaller to enforce this thing and make sure the app runs with admin rights?
2 に答える
2
You'll need to create a custom manifest file specifying the required requestedExecutionLevel with the same name as the final .exe filename and run PyInstaller with the --manifest
option.
于 2013-03-18T20:27:54.717 に答える
1
run PyInstaller with the --uac-admin
option
于 2021-12-20T03:22:16.533 に答える