Originally Posted by
adeyblue
"asInvoker" won't give you admin rights unless Explorer (or whatever app they use to run yours) is already running with admin rights. "HighestAvailable" will only prompt for admin consent if the user is part of the admin group, otherwise it'll run with standard permissions. The only reliable way is to use requireAdministrator, which does what it says.
If you don't have that section in a manifest and put the word 'setup' in the filename, Windows will sort it all out for you in the name of compatability. Of course, that's not recommended but it exists.