anybastard Posted March 20, 2014 Posted March 20, 2014 Hi guys , I need your help for a stupid issue , but I'm not able to solve Basically I need to change some registry value and with RegWrite command all works fine . My problem is related to UAC pop-up , because I'm not able to skip it and run my script with admin privileges ( also using #RequireAdmin ) BTW , for different reasons I cannot disable UAC Do you have any idea or workaround for me ? Thanks a lot BR AnyB
JohnOne Posted March 20, 2014 Posted March 20, 2014 There's something about creating a shortcut of your file in example scripts, you'll need to find it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
anybastard Posted March 20, 2014 Author Posted March 20, 2014 Hi JohnOne , I don't understand BR AnyB
JohnOne Posted March 20, 2014 Posted March 20, 2014 Me neither, I just know it allows you to run your file without UAC prompt. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
reb Posted March 20, 2014 Posted March 20, 2014 Take a look here. '?do=embed' frameborder='0' data-embedContent>> REB MEASURE TWICE - CUT ONCE
Queener Posted March 20, 2014 Posted March 20, 2014 (edited) Should be able to modify reg without an issue on windows 8. Example: (Unrelated to yours) RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", "http://msn.com") It changes your homepage to http://msn.com when you open your internet explorer. and you do not need to use #requireadmin for this as long as you log on as the local admin. Edited March 20, 2014 by asianqueen Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
anybastard Posted March 20, 2014 Author Posted March 20, 2014 Hi. thanks for your reply @ Reb I will check your suggestion @ Asianqueen My problem is not change the reg value , it works w/o problem . My question is skip UAC popup and run the script w/ admin privilege Br AnyB
Queener Posted March 20, 2014 Posted March 20, 2014 (edited) do you need the #requireadmin to run your script anyways? If so, I don't think you can skip it. Additional suggestion, but not recommend is to turn off UAC completely. Edited March 20, 2014 by asianqueen Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")
Bert Posted March 20, 2014 Posted March 20, 2014 IS this your machine or does it belong to someone else? The Vollatran project My blog: http://www.vollysinterestingshit.com/
JohnOne Posted March 20, 2014 Posted March 20, 2014 '?do=embed' frameborder='0' data-embedContent>> AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
AdamUL Posted March 21, 2014 Posted March 21, 2014 Have a look the _UAC_SetConsentPromptBehaviorAdmin in my >UAC UDF that reb mentioned. #RequireAdmin #include <UAC.au3> _UAC_SetConsentPromptBehaviorAdmin($UAC_ELEVATE_WITHOUT_PROMPTING) This turns off the UAC prompts for admins, but leaves it for regular users. Adam
anybastard Posted March 21, 2014 Author Posted March 21, 2014 Hi guys , thanks a lot for all your suggestion and help . @ AdamUL , I will try to implement your suggestion BR AmyB
JohnOne Posted March 21, 2014 Posted March 21, 2014 Your username is ace. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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