Eagle710 Posted December 14, 2011 Share Posted December 14, 2011 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 comment Share on other sites More sharing options...
somdcomputerguy Posted December 14, 2011 Share Posted December 14, 2011 The WinWait() function might work out better. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 14, 2011 Moderators Share Posted December 14, 2011 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 comment Share on other sites More sharing options...
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