Jump to content

Wait for PopUp if it Pops


Recommended Posts

Hello,

I am writing a simple piece of code that would go through an installation.

If the system is having this installed for the first time a EULA popup appears. If this is a re-install the EULA will not appear.

I am not sure how to wait and check to see if this appears. Timing can be off from system to system so I can't assume it only takes 3 seconds before moving on in my script.

I have been trying to do the following:

If WinExists ("Setup EULA Pop-Up", "Agreeement") then
   Send ("!a")
  EndIf

Any help is greatly apperciated. Thanks!

Link to post
Share on other sites
  • Moderators

Hi, Eagle. My suggestion, depending on how the software is installed, would be to simply set this global property in your command line. Most MSIs accept the ACCEPT switch, so your command line to install would be msiexec /i "YourProductName" /qn ACCEPT=YES. This would be a lot easier than trying to wait for the EULA to pop up and then clicking on it.

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

    No registered users viewing this page.

×
×
  • Create New...