francoiste

UAC elevation - RequireAdmin vs. pragma compile ExecLevel

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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