Jump to content

Control Click works for the first time and doesn't work after that at all

Recommended Posts



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


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

Share this post

Link to post
Share on other sites

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


√-1 2^3 ∑ π, and it was delicious!

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


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.