Jump to content

UAC elevation - RequireAdmin vs. pragma compile ExecLevel

Recommended Posts

technically speaking what's the difference between the following two:




#pragma compile(ExecLevel, requireAdministrator)

obviously the second one works for "compiled" scripts, only.

but are there any other differences?
in the documentation those two are not even cross-linked in the "related" paragraph.


Edited by francoiste

Share this post

Link to post
Share on other sites

#RequireAdmin will re-shell the EXE when it isn't running at the right elevation level.
The #Pragma() statement will set the MANIFEST in the created EXE to the requested level which means the OS will handle the proper elevation at startup.


Edited by Jos

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...