2

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?

daxim
  • 39,270
  • 4
  • 65
  • 132
Pawel
  • 171
  • 2
  • 5

2 Answers2

0

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!

TreeBoa
  • 17
  • 4
0

In http://www.mail-archive.com/par@perl.org/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. :-)

audreyt
  • 116
  • 1
  • 3