Jump to content

Help automating Reboot Restore RX Free Version


szavala
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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!

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...