Deluxe

#RequireAdmin - Windows UAC

8 posts in this topic

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')

 

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by Deluxe

Share this post


Link to post
Share on other sites

So what is the problem - just shellexecute the shortcut then - for example mine are located here :

"C:\ProgramData\Microsoft\Windows\Start Menu\Programs"

Share this post


Link to post
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