Sekhar Posted June 4, 2013 Share Posted June 4, 2013 Hello Experts, Iam trying use the following code running installables one by one. Runwait("abc.exe") Runwait("def.exe") Runwait("xyz.exe") The problem iam having here is that once i run the script ,abc.exe is executing perfectly fine. But it is leaving a Porcess called abc.exe in Taskmanager and the Script is getting paused meaning not moving to next line and doing the def.exe execution. Is there any way i can kill the process after first installation so that second installation starts immedately after completion of first installation. or any other best methods? I tried this but no luck Runwait("abc.exe") Processclose("abc.exe") Runwait("def.exe") Runwait("xyz.exe") Any suggestion would be of great help. Best Regards, Sekhar Link to comment Share on other sites More sharing options...
FireFox Posted June 4, 2013 Share Posted June 4, 2013 (edited) Hi, The RunWait function as stated in the helpfile, waits for the program to close. If the program does not close automatically, you need to use the Run function and close it when you want using the WinWait/Send/ControlSend functions. Br, FireFox. Edited June 4, 2013 by FireFox Link to comment Share on other sites More sharing options...
Sekhar Posted June 4, 2013 Author Share Posted June 4, 2013 Hi, Iam completely new and having little knowlegde,can you explian more clear? Thanks Link to comment Share on other sites More sharing options...
Solution FireFox Posted June 4, 2013 Solution Share Posted June 4, 2013 (edited) Well, the schema is the following :1. Run the setup2. Wait for it to finish3. Close it;1 Run(... ;setup path ;2 WinWait("Setup - Finished") ;your setup title (if this last changes its title when finished) ;3 ControlClick(... ;close button ;or ProcessClose(... ;setup pidBr, FireFox. Edited June 4, 2013 by FireFox Sekhar 1 Link to comment Share on other sites More sharing options...
Sekhar Posted June 4, 2013 Author Share Posted June 4, 2013 Thanks, I wrote like this for the command but it did not work, It is getting stopped at the window ,you can see in the attachment Run(D:setup.exe") WinWait("ADW165_KIT2_SPC - InstallShield Wizard", "InstallShield Wizard Completed") WinActivate("ADW165_KIT2_SPC - InstallShield Wizard", "InstallShield Wizard Completed") Send("{ENTER}") Processclose("setup.exe) Please see the image . Link to comment Share on other sites More sharing options...
FireFox Posted June 4, 2013 Share Posted June 4, 2013 Use the AutoIt Window Info tool (CTRL+F6 hotkey in SciTE) and try with the ControlGetText function.If ControlGetText( ... = "... Completed" Then EndIfBr, FireFox. 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