Jump to content

Is there a difference? about #RequireAdmin


Recommended Posts

Is there any difference in using #RequireAdmin from within your script vs using

#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator which places the directive into the manifest?

It is my assumption that #RequireAdmin is simply available for when the scripter is not using the full scite.

Link to post
Share on other sites
  • Developers
8 hours ago, Shark007 said:

It is my assumption that #RequireAdmin is simply available for when the scripter is not using the full scite.

Not really as there is also a #pragma option for this these days:

#pragma compile(ExecLevel, requireAdministrator)

The difference is when defined in the Manifest, it will be handed by the Windows OS were #RequireAdmin is handled by AutoIt3 and the script is re-shelled when not at the required level.

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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...