Brian Sweeney
Brian Sweeney

Reputation: 6815

How can you install a shortcut with the 'Run As Admin' option automatically toggled on?

I have an application which needs to be run as admin for all of the features to work correctly. I would like to be able to install the app and create shortcuts with that option automatically toggled on. Is this possible? I'm using InstallAware 9 to create my installation.

Thanks, brian

Upvotes: 0

Views: 619

Answers (1)

DaveE
DaveE

Reputation: 3647

AFAIK, an application manifest that specifies administrator access will cause this to happen on all OSes where this is an issue.

Here's the relevant fragment.

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
  <security>
    <requestedPrivileges>
      <requestedExecutionLevel level="requireAdministrator" />
    </requestedPrivileges>
  </security>
</trustInfo>

Upvotes: 2

Related Questions