I have downloaded and compiled app from https://stefanwick.com/2018/10/01/app-elevation-samples-part-1/
link to github https://github.com/StefanWickDev/AllowElevation-Samples/tree/master/Hello%20Elevated%20World
I made two version of it, changed only requestedExecutionLevel in app.manifest
- with
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
- with
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
Running both apps on standard user account (not admin) uac set to default (max)
Problem with #1 is that it does no trigger any UAC but i believe it should ? and when checked in task manager it shows Elevated No
Problem with #2 when run UAC box shows up, when Admin password typed in, error message shows up "The requested operation requires elevation" and application does not start at all.
It looks like something is broken on MSTF side, or am i missing something ?
Capability section in Package.manifest
<Capabilities>
<Capability Name="internetClient" />
<rescap:Capability Name="runFullTrust" />
<rescap:Capability Name="allowElevation" />
</Capabilities>