myWallJSON
myWallJSON

Reputation: 9502

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)?

Upvotes: 2

Views: 537

Answers (1)

Deanna
Deanna

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

Related Questions