Disallow multiple instances of installer

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

Disallow multiple instances of installer

Postby srowe » Thu Jan 12, 2006 8:16 pm

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:

Postby MichaelNesmith » Thu Jan 12, 2006 8:34 pm

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 177 guests