salungh Posted September 22, 2016 Posted September 22, 2016 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 JLogan3o13 Posted September 26, 2016 Moderators Posted September 26, 2016 @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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now