Running initial UI un-elevated

Oct 24, 2011 at 3:31 PM

I noticed in the changelog that there's an item:

#7968: Support elevation as a subsequent command within the bootstrapper. First UI shows un-elevated, but clicking install elevates.

Looking at the htmlInstaller and dotNetInstaller executables, it looks like they have the UAC shields and so will always elevate immediately. Indeed, creating a simple bootstrapper with administrator_required=False confirms that it shows the UAC prompt when run. How do I get the initial UI to display without requiring elevation?

Oct 24, 2011 at 5:23 PM

You need to embed a non-elevated manifest. Something with

      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
      </requestedPrivileges>

I remember making this default for DNI, but maybe I didn't and probably for a good reason :) Get this to work on your setup first by embedding a proper manifest on the command line.