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...

  1. install pyinstaller 3.0
  2. manifest file must located in dist folder single excutable file located
  3. the name of manifest file must same output file.
  4. if manifest file located in dist folder, no need specify --manifest option. --uac-admin enough.
  5. you can find manifest file @ build folder.

thank you.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -