简体   繁体   English

使用使用UAC的pyInstaller创建exe

[英]Creating an exe with pyInstaller that uses UAC

I have a python script which I would like to create an exe from, but It requires administrator privaleges. 我有一个python脚本,我想创建一个exe,但它需要管理员权限。 I would like to compile my script with pyInstaller, but I don't know if it has an option to enable UAC. 我想用pyInstaller编译我的脚本,但我不知道它是否有启用UAC的选项。

In the platform SDK there is a file called MT. 在平台SDK中有一个名为MT的文件。 exe which can embed manifests into an exe (see here :) exe可以将清单嵌入到exe中(参见这里 :)

Maybe try py2exe? 也许试试py2exe? All code will be write on Linux, and compile to .exe on Windows 7 x64. 所有代码都将在Linux上编写,并在Windows 7 x64上编译为.exe。

All work good and without administrator privaleges. 所有工作都很好,没有管理员权限。

py2exe official site py2exe官方网站

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM