Archive: Pausing an installer


Pausing an installer
Is there a way to make the installer to stop until a specified window is shown and/or closed? I'm trying to make an installer which also installs several other supporting programs, but one of those install programs launches several 'threads' so thaat execwait does not actually wait. So I was wondering if there was a way to make the installer set a hook or something and wait until a window with a specified caption was launched?

Vytautas


You might want to try popping up a messagebox after you exec the installer, that has a message for the user to press "OK" after the other installer is completed. That would effectively pause the installer. The disadvantage is that they could continue the installer w/o the other one finishing.

-Scott


You can also use FindWindow to find a window with a specific caption and class. Then you can use IsWindow in a loop to know when it's destroyed. Just make sure you check you haven't missed the window. If you miss it, you can get into an infinite loop. For example:

Your installer executes that program
Program creates a window
Program finishes and destroys the window
Your loop starts
... Your loop never ends