Create an executable file that uses administrator rights using Pyinstaller

I need to create an executable for Windows 8.1 and below, so I tried to execute Py2Exe (without success) and then PyInstaller, and hell worked. Now I need to run it as admin (every time since it uses admin tasks). My actual compilation of the script is as follows: python pyinstaller.py --onefile --noconsole --icon=C:\Python27\my_distrib\ico_name --name=app_name C:\Python27\my_distrib\script.py Is it possible to use UAC or something like this? (its a mess for me)

In addition, every time I run it on my Windows 8.1 laptop (my desktop computer is Windows 7), it says it's dangerous ... Anything to make it an “exe” trusted? thanks in advance

+4
source share
1 answer

PyInstaller 3.0 includes an option --uac-admin!

+4
source

All Articles