Jump to content

Simple question UAC Newbie Here


Recommended Posts

Started playing with Autoit, will be great when i can figure it out. 

Q: Where do i find info on UAC, the small section i found gets this to open but i still have to interact with it, then it stops on first button options. I have file in same folder.  Should be simple but can't find info to fix it.  Used 3 tutorials as reference.  Thanks for any help.  

http://www.aomeisoftware.com/download/ok/Onekey.exe

; Script Start - Add your code below here
; This script requires full Administrative rights
#RequireAdmin
Run("onekey.exe")
WinWaitActive ("changes")
Send("!Y")
WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2")
Send("!n")
WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2","accept")
Send("!a")
WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2","next")
Send("!n")
WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2","B&rowse...")
Send("!n")
WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2","performe")
Send("!n")
WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2","review")
Send("!n")
WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2","finish")
Send("!f")

Link to comment
Share on other sites

Hi feistcomputers and welcome on the forum!

Most of the installers have a silent install command, you just need to test the parameters to figure it out.

For your software the command is:

Onekey.exe /silent

Then no need to use your script ;)

But to answer your questions, using #RequireAdmin should disable all UAC messages. Maybe your script is failing because of a typo here?

WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2","B&rowse...")

 

 

Link to comment
Share on other sites

Hi feistcomputers and welcome on the forum!

Most of the installers have a silent install command, you just need to test the parameters to figure it out.

For your software the command is:

Onekey.exe /silent

Then no need to use your script ;)

But to answer your questions, using #RequireAdmin should disable all UAC messages. Maybe your script is failing because of a typo here?

WinWaitActive ("Setup - AOMEI OneKey Recovery 1.2","B&rowse...")

 

 

yes i wasnt sure on that typo, i took info right from the info tool that came with Autoit. How would I run that Onekey.exe /silent remotely to all my customers.  Started doing msp as a one man shop.  Much to learn.   
Your answer will open  many doors for me.  Also how do you find the switch for any given program.  That is awesome. 

 

Link to comment
Share on other sites

How would I run that Onekey.exe /silent remotely to all my customers

Well that depends on who are your customers, how are you connected with them and what priviledges you have on their PCs. You need to give more details about what you are trying to achieve if you want help about this.

 

 Started doing msp as a one man shop.  Much to learn.

What's a msp? :)

 

Also how do you find the switch for any given program

Most of the time the silent install commands are the same so just open command line where the install .exe is then try to add /install or /silent or -s or /s... Until it works ;)

Edited by Neutro
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...