views:

28

answers:

1

Hello,

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

+1  A: 

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>
DaveE
I tried this and rather getting the UAC popup, i got one which stated the following: "The requested operation requires elevation." There is only an OK button. The app does not launch. Is this expected?
sweeney
DaveE
Manifesting a random .exe on my XP SP3 machine brings up a credentials prompt. Maybe your UAC aready has some of the prompt control options already set.
DaveE

related questions