Skip to content
⌘ NSIS Forum Archive

Halting a script till w indow is closed

3 posts

Talidan#

Halting a script till w indow is closed

Hello

Firstly, id like to clarify that im no advanced NSIS user, i have only done simple jobs in the past based on tutorials.

The installer im making requires the launching of a program to extract a file archive (which can only be done with a specific tool), and then copying files over to replace extracted files, then running another tool to repackage them.

To do this, itd require launching the tool, waiting it for it to close (since after extraction it closes), copying over files, launching repackaging tool then continue with the final installation process.

ExecShell'ing the tools and copying over the files are pretty straightforward, its detecting when a window closes which im having trouble with. I would assume that i would have to put FindWindow on a loop till the window is not detected, then continue with the script. I am not sure if this is the most efficient way or how to go about this properly. Any help would be appreciated 🙂

edit: i forgot to mention the most relevant topics i could find were the following: http://nsis.sourceforge.net/Detect_i..._and_close_it.
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Talidan#
I think that's exactly what i was looking for lol, thanks.

I didnt realise there was an ExecWait.