PDA

View Full Version : Allow one setup running at one time



Manish Jhalani
07-02-2014, 01:46 AM
I have a custom wizard setup XYZ.exe created through Setup Builder 7.1. I want only one instance of setup should be running at one time. If setup XYZ.exe is running and user tries to(or accidently) run XYZ.exe; setup should not execute and provide message that XYZ.exe is already running.

I tried using FUNCTION:Detect Active Application(XYZ.exe) [File Name] to stop this scenarion but when I run setup first time it detects to itself. This is stopping me to run setup even once.

How should I workout this scenario in setup builder. Please help.

linder
07-02-2014, 02:11 AM
Manish,

In Windows, you have to use a MUTEX to handle this.

SetupBuilder 7.1 reached "End of Life" four years ago on July 26, 2010. I have created a SetupBuilder 8 project for you ("only one instance allowed" demo):

http://www.lindersoft.com/projects/OneInstance.zip

Hope this helps a bit.

Friedrich

Unregistered
07-02-2014, 02:49 AM
Manish,

In Windows, you have to use a MUTEX to handle this.

SetupBuilder 7.1 reached "End of Life" four years ago on July 26, 2010. I have created a SetupBuilder 8 project for you ("only one instance allowed" demo):

http://www.lindersoft.com/projects/OneInstance.zip

Hope this helps a bit.

Friedrich

Thanks a lot. This was really super quick.

linder
07-02-2014, 02:53 AM
You are very welcome :)

Friedrich