9h0s7 Posted January 9, 2008 Share Posted January 9, 2008 (edited) Greetings fellow scripters! Here's the low down. I have script that launches a installation. The installation will do one of two things. If it detects that the program is already installed it pop ups a message and the installer quits when you click ok. Or it will proceed through the installation. My problem has been figuring out how to getting to check which on pop ups and take the correction action. Here's what I have so far.*Note some names have been changed to protect the guilty*Run("\\pcname\folder\program.exe")If WinWaitActive("title", "stuff in the box") Then Send("{ENTER}") ExitEndIf--the above works--WinWaitActive("title", "stuff")Send("{ENTER}")WinWaitActive("title", "stuff")Send("!a")Send("{ENTER}")WinWaitActive("title", "stuff")Send("{ENTER}")thanks for the help! Edited January 9, 2008 by 9h0s7 Link to comment Share on other sites More sharing options...
Paulie Posted January 9, 2008 Share Posted January 9, 2008 Its very likely that your script Exits when you tell it to. Run("\\pcname\folder\program.exe") If WinWaitActive("title", "stuff in the box") Then Send("{ENTER}") EndIf ;--the above works-- WinWaitActive("title", "stuff") Send("{ENTER}") WinWaitActive("title", "stuff") Send("!a") Send("{ENTER}") WinWaitActive("title", "stuff") Send("{ENTER}") Link to comment Share on other sites More sharing options...
9h0s7 Posted January 9, 2008 Author Share Posted January 9, 2008 right, like I said that part works, it's the other part that doesn't. When I run the script and the program is installed the script makes the installer exit. That part works. However, when the program is not installed the script doesn't do anything. 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