Jump to content

Recommended Posts

Posted

Hi,

I am trying to automate the installation of desktop application but I am unable to do so at the very first step as I am unable to click the "Next" button. Please help. Below is the code I am using:

RunWait('msiexec /i "C:\Users\s\Desktop\Auto IT\Scripts\Installer.msi"')

WinWait('Setup')
WinActivate('Setup')

Do
    $Start = ControlGetHandle('Setup','Next','[CLASS:Button; INSTANCE:1]')
    Sleep(1000)
Until $Start
ControlClick('Setup','', $Start)

  • Moderators
Posted

@salungh if it is an MSI, why not install it silently, rather than the messier route of automating the GUI? Something like:

RunWait('msiexec /i "C:\Users\s\Desktop\Auto IT\Scripts\Installer.msi" /qn')

 

"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!

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