Jump to content

#RequireAdmin - Windows UAC


Deluxe
 Share

Recommended Posts

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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...