Search code examples
inno-setupistool

How to make Innosetup uninstaller not run if installer is on?


How to make created via Innosetup uninstaller not run if installer is on build via Innosetup and currently installing (installer and uninstaller are made from same source file)?


Solution

  • If AppMutex doesn't protect against this already, you can add code to both the install and uninstall to use CheckForMutexes() and CreateMutex(). If CheckForMutexes() returns true, you can then exit. this will essentially replace the AppMutex support and can check for your application too.