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 FUNCTIONetect 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.