Automatically elevate "Deploy-Application.EXE"?

Topics: Archive - General
Sep 23, 2014 at 10:31 PM
Edited Sep 23, 2014 at 10:32 PM

In a manual-use case (double-click Deploy-Application.EXE to start the install), the EXE file typically bombs out with an error that it's not running with administrator permissions. Right-clicking the EXE and selecting Run as Administrator works as expected.

Instead of generating a terminating error, would it be possible to have the program request elevation?

I won't claim to be an expert on Wise scripting, but based on a little bit of research, it may be doable by changing line 46 from
Requested Execution Level=asInvoker
Requested Execution Level=requireAdministrator
Of course, this isn't a game-breaking bug or anything, but it would be a nice convenience.

Thanks for all the hard work on this toolkit! It makes my life worlds easier.
Sep 25, 2014 at 4:14 PM

Actually the original WiseCode was as you described but it caused issues on standard user accounts, I can't recall exactly what the issue was but we decided to sacrifice the convenience in favour of resolving the issue.