Nihility Posted November 5, 2010 Share Posted November 5, 2010 (edited) Let me draw out the scenario so someone can get a good picture of what's going on. I have an application that requires Admin access on 400+ machines. Without having the developers re-write the launcher for the application our current workaround is setting the privilege level of the app to 'Run This Program As Administrator' This is done by simply right clicking on the Exe/Properties/ compatibility / Run This Program AS Administrator. We are required to do this as we've decided to leave UAC on. Is there a way to have Autoit put the 'Run This Program as an Administrator' flag on the exe? I assumed I could do this with a bat, however i've yet to find anything regarding how to do this. Thanks! Edited November 5, 2010 by Nihility Link to comment Share on other sites More sharing options...
Developers Jos Posted November 5, 2010 Developers Share Posted November 5, 2010 Install the Full SciTE4AutoIt3 and use directive: #AutoIt3Wrapper_res_requestedExecutionLevel= ;None, asInvoker, highestAvailable or requireAdministrator 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 More sharing options...
eracross Posted November 5, 2010 Share Posted November 5, 2010 (edited) Ops yeah Edited November 5, 2010 by eracross Link to comment Share on other sites More sharing options...
Chimaera Posted November 5, 2010 Share Posted November 5, 2010 Its not a code answer but you can create a shortcut to the exe and in the advanced settings on the shortcut tab tick the run as admin tickbox then save and your shortcut will start the main exe with admin priveledges. I run installs from Cmd this way, UAC may still ask on running the shortcut but after that it will all be admin i think. Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() 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