python - PyInstaller UAC not working in onefile mode -
hello everybody.
i have small python project , want make single executable file. using...
- windows 7
- python 3.4
- pyinstaller 3.2.1
my pyinstaller command is,
pyinstaller -y -w -f -n output_file_name --uac-admin --clean source_file.py
this command works properly. single output file not ask admin rights when executed. , there's no shield mark on executable file icon.
when remove -f option (equivalent --onefile), output executable file has shield mark on icon , ask me admin rights. not want. want single executable file.
i found manifest file (output_file_name.exe.manifest) in dist\output_file_name folder. did...
pyinstaller -y -w -f -n output_file_name --manifest output_file_name.exe.manifest --uac-admin --clean source_file.py
but command doesn't work. single executable file still not ask admin rights.
i have removed pyinstaller , installed recent development version.
pip install git+https://github.com/pyinstaller/pyinstaller.git@develop
but result same. output doesn't have shield mark on icon , not ask admin rights.
do have idea?
please me!
i found what's wrong!
the key point is...
- install pyinstaller 3.0
- manifest file must located in dist folder single excutable file located
- the name of manifest file must same output file.
- if manifest file located in dist folder, no need specify --manifest option. --uac-admin enough.
- you can find manifest file @ build folder.
thank you.
Comments
Post a Comment