Jump to content

Recommended Posts

Posted (edited)

Hello everyone,

I am needing help trying to automate the install of Reboot Restore RX.  I get stuck on the Language Selection msgbox.  See attached screen shot.  I tried SEND("{ENTER}"); SEND("{SPACE}"); even tried {TAB} then {ENTER};  and of course ControlClick variations and nothing works.  Note. when I do the {TAB}, it reflects the selection of the button I tabbed to, it just won't click OK.

Also, the last 2 lines of my script, I was desperate and just put anything to see if I could get it to work.  I originally had Send("{ENTER}") after the WinWaitActive.

Any help would be appreciated.

AutoIT.png

Edited by szavala
  • Moderators
Posted

Hi, @szavala, this install is a bit of a pain in the butt, as it completely resists silent install for the free version. However, this works just fine for me:

#RequireAdmin

ShellExecute(@DesktopDir & "\RebootRestoreRX\Setup.exe")

;Language Select
WinWait("[CLASS:#32770]", "&Select your system language:")
ControlClick("[CLASS:#32770]", "&Select your system language:", "Button1")

;Page One
WinWait("[CLASS:#32770]", "This setup wizard will lead you")
ControlClick("[CLASS:#32770]", "This setup wizard will lead you", "Button3")

;EULA
WinWait("[CLASS:#32770]", "End User License Agreement")
ControlClick("[CLASS:#32770]", "End User License Agreement", "Button3")

;Partition
WinWait("[CLASS:#32770]", "&Cancel")
ControlClick("[CLASS:#32770]", "&Cancel", "Button3")

;Install
WinWait("[CLASS:#32770]", "Current Settings")
ControlClick("[CLASS:#32770]", "Current Settings", "Button3")

;Reboot
WinWait("[CLASS:#32770]", "Installation Wizard Completed")
ControlClick("[CLASS:#32770]", "Installation Wizard Completed", "Button1") ;To reboot or not to reboot
ControlClick("[CLASS:#32770]", "Installation Wizard Completed", "Button5") ;Finish

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

@Jos & @JLogan3o13, thanks you for your help with this.  I will give them both a try first thing in the morning.  I will let you guys know how it goes.

 

Thanks again for all the help.

Posted

Here is an update. 

@Jos, ("o") did not work.

@JLogan3o13,  it worked like a charm. 

Thanks again for helping me with the solution.

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
  • Recently Browsing   0 members

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