Disallow multiple instances of installer

Got a problem you cannot solve? Try here.
Post Reply
srowe
Posts: 10
Joined: Thu Jul 21, 2005 12:48 pm

Disallow multiple instances of installer

Post by srowe »

Is there some method by which only one instance of a specific installer can be run at any one time? Currently, I can launch our installer/uninstaller and then launch another. I'd like the 2nd instance to detect that the first one is running and just quit.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Hi

You may use the Terminate Program command to try and close a running instance. You may also use the Call DLL Function plug-in and invoke the FindWindowA API in user32.dll to find out if your target setup is running.

Hope that helps!
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply