如何在以更高权限运行的 Windows Vista 或 Windows 7 中运行 PAR 打包文件?

发布于 2024-10-07 17:36:23 字数 170 浏览 0 评论 0原文

有谁知道如何使 PAR 打包的 Perl 应用程序以更高的权限运行? 我读到一定有某种清单文件,但是这个文件应该是什么样子以及如何将它与 PAR 打包的可执行文件结合起来?这对我来说仍然是未知的。

有什么想法吗?

Does anyone know how to make a PAR packed Perl application run with higher privileges?
I've read that there must be somewhere some kind of manifest file, but how should this file look like and how to combine it with the PAR packed executable? This is still unknown to me.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

本宫微胖 2024-10-14 17:36:23

http://www.mail-archive.com/[电子邮件受保护]/msg04642.html Mark Dootson 提出了使用 Win32::Exe:PP 为 pp 打包的可执行文件执行 UAC 清单的可能实现。

不过,在此之前,有一个简单的解决方法,您可能已经知道了:将 .exe 文件命名为“setup.exe”,系统将提示用户提升权限。 :-)

In http://www.mail-archive.com/[email protected]/msg04642.html Mark Dootson proposed a possible implementation of UAC manifests for pp-packed executables using Win32::Exe:PP.

Until that is done, though, there is an easy workaround, which you probably already knew: Name the .exe file "setup.exe" and the user will be prompted for elevated rights. :-)

南风起 2024-10-14 17:36:23

是的,我知道。
请参阅此 http://codepad.org/CDWhFoZu

my $ exe = Win32 :: Exe-> new('C:\Users\treeboa\perl\pic.exe');
指定要以管理员身份运行的exe

$ exe-> update(manifest => './pic.exe.manifest');
我设置为pic.exe pic.exe.manifest

运行update.pl

双击pic.exe
运行对话框显示管理员pic.exe

成功!

Yes, I know.
Please see this http://codepad.org/CDWhFoZu

my $ exe = Win32 :: Exe-> new ('C: \ Users \ treeboa \ perl \ pic.exe');
Specifies the exe that want to run in administrator

$ Exe-> update (manifest => '. / Pic.exe.manifest');
I set to pic.exe the pic.exe.manifest

Run the update.pl

Double-click the pic.exe
Run dialog displays the administrator pic.exe

Success!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文