Jump to content

UAC elevation - RequireAdmin vs. pragma compile ExecLevel


Recommended Posts

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

1)

#RequireAdmin

2)

#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
Link to comment
Share on other sites

  • Developers

#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.

Jos 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...