Deluxe Posted February 21, 2016 Share Posted February 21, 2016 hi guys, maybe you can help me out here... i need to run these programms one time with admin rights. though when i run this script the admin privilges will be adopt by all the programms. the problem now is, the UAC shows up everytime when the programm try to finish the installation. any idea what i can do about? thanks! #RequireAdmin Send("#s") Sleep (100) Send("Mozilla{SPACE}Firefox{ENTER}") WinWait('Mozilla Firefox') Send("#s") Sleep (100) Send("Adobe{SPACE}Reader{SPACE}XI{ENTER}") WinWait('Adobe Reader') Send("#s") Sleep (100) Send("Word{SPACE}2013{ENTER}") WinWait('Word') Link to comment Share on other sites More sharing options...
JohnOne Posted February 21, 2016 Share Posted February 21, 2016 So remove #RequireAdmin AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Deluxe Posted February 22, 2016 Author Share Posted February 22, 2016 20 hours ago, JohnOne said: So remove #RequireAdmin thats the point, i want to enter just one time the admin details with #RequireAdmin and after entering it, the script shoudnt ask me anymore or dont show me UAC Popops, is there any way to do it with autoit? Maybe temporary disable the UAC? thanks for your help! Link to comment Share on other sites More sharing options...
Juvigy Posted February 22, 2016 Share Posted February 22, 2016 I dont see in your code to run any programs. I dont see ANY run or shellexecute commands. How and where do you start the programs ? Link to comment Share on other sites More sharing options...
JohnOne Posted February 22, 2016 Share Posted February 22, 2016 Just right click and run as admin. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Deluxe Posted February 22, 2016 Author Share Posted February 22, 2016 42 minutes ago, Juvigy said: I dont see in your code to run any programs. I dont see ANY run or shellexecute commands. How and where do you start the programs ? the script does the the following keystroke: win +s then writes the name of the programm in the search box and sends the key enter to run it. have to be done this way because opening the programm from the programm dictory dont work for finishing the installation, programm has to be started with the shortcut from the startmenu. Link to comment Share on other sites More sharing options...
Deluxe Posted February 22, 2016 Author Share Posted February 22, 2016 (edited) 44 minutes ago, JohnOne said: Just right click and run as admin. thanks! i am gonna try it out soon as possible if this works. Edited February 22, 2016 by Deluxe Link to comment Share on other sites More sharing options...
Juvigy Posted February 23, 2016 Share Posted February 23, 2016 So what is the problem - just shellexecute the shortcut then - for example mine are located here : "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" 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