Reputation: 9502
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)?
Upvotes: 2
Views: 537
Reputation: 24253
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.
Upvotes: 1