aegi Posted February 20, 2011 Share Posted February 20, 2011 HiI am troubeling currently about running an elevated script (with #RequireAdmin) and disabling the UAC elevation popup.Regarding this article there is a way to disable UAC elevation popup on a per application base: A quick run down: 1. Install the Application Compatibility Toolkit 5.0 (I am using V5.6). 2. In the Start menu, locate the Compatibility Administrator inside the ACT folder. Right-click it and Run as administrator. 3. In the left hand pane, right-click on the database under Custom Databases and select Create New, and select Application Fix. 4. Enter the name of the application you want to alter and browse to it to select it. 5. Click Next until you are in the Compatibility Fixes screen. 6. On the Compatibility Fixes screen, find the item RunAsInvoker, and check it. 7. Click Next and Finish. 8. Select File and Save As. Save the file as appname.sdb in a directory you will easily find it. (9. Copy the appname.sdb file to the Vista computer you want to alter the elevation prompt behavior on.) 10. Click Start>All Programs>Accessories. Right click Command Prompt and click Run as administrator. 11. Run the command: sdbinst appname.sdb It should display: Installation of "appname" complete. While this is working for example for device manager, regedit and a little C++ program which is also requiring elevation, I will still get the UAC elevation popup for the compiled AutoIt-Script.For testing I was using the following little script:;#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker ;#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #RequireAdmin If IsAdmin() Then MsgBox(0, "", "Admin rights detected") Else MsgBox(0, "", "Normal rights detected") EndIfAny Idea what kind of setting I am missing?Thank you very much for your support!Best regards, Andi Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now