I have an application FOO that does not usually need admin permissions. And also I have a link within website that allows me to start this FOO application.
By default that FOO is started with permissions of a user. The only way to start FOO is by clicking a website link (parameters, that are passed to a client application are crucial).
In some cases, user needs to start that application from webbrowser with admin permissions. I want to have two links on a website, one of them - to allow users to start with usual permissions, another one- with elevated permissions.
Is there any parameter or modifier within custom protocol link that would allow me to tell OS on a target machine that I need to start my application as administrator?
EXAMPLE
<a href="Mycustomprotocol:baseurl=paramurl&username=paramname"> Click me for launch</a>
you can use the runas command.
point your users to a batch file instead of an exe, and have that batch file invoke runas foo.exe with the parameters passed to it.