Jump to content

how to use runwait command?

Go to solution Solved by FireFox,

Recommended Posts

Hello Experts,

Iam trying use the following code running installables one by one.




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





Any suggestion would be of great help.

Best Regards,

Link to comment
Share on other sites


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 by FireFox
Link to comment
Share on other sites

  • Solution

Well, the schema is the following :

1. Run the setup

2. Wait for it to finish

3. Close it

Run(... ;setup path

WinWait("Setup - Finished") ;your setup title (if this last changes its title when finished)
ControlClick(... ;close button
ProcessClose(... ;setup pid
Br, FireFox. Edited by FireFox
Link to comment
Share on other sites


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


WinWait("ADW165_KIT2_SPC - InstallShield Wizard", "InstallShield Wizard Completed")

WinActivate("ADW165_KIT2_SPC - InstallShield Wizard", "InstallShield Wizard Completed")



Please see the image .


Link to comment
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...