How do I create a shortcut to CMD.EXE that asks for elevation using INNO Setup?

Posted by Maltrap on Stack Overflow See other posts from Stack Overflow or by Maltrap
Published on 2010-03-22T06:57:54Z Indexed on 2010/03/22 7:01 UTC
Read the original article Hit count: 327

Filed under:
|
|
|

Hi,

using INNO Setup I currently have the following entry under the [ICONS] section:

Name: "{group}\My App\My App - Command Prompt"; Filename: "cmd.exe"; WorkingDir: "{app}"

This shortcut launches a command prompt straight into my application's folder. Unfortunately it isn't launched as elevated which means the commands the user runs from there doesn't have appropriate rights.

Using INNO Setup, how can I create a shortcut to CMD.exe (in a specific folder) that requires elevation?

Doing this for other applications can be done via a manifest file. My question is, how do I use it using INNO, and if I can't, what are my alternatives?

© Stack Overflow or respective owner

Related posts about inno-setup

Related posts about elevation