
bjaber1.5524915760963884E12 asked a question.
Uninstall action not firing...
I'm having no luck getting an uninstall custom action to fire.
The INSTALL custom action is:
InstallDriver.exe -install
This install action is set "After RegisterComPlus" (actually, it can exist anywhere between "After InstallFiles" and "After InstallFinalize"). The action is a "Commit Execution", Synchronous (check exit code), and always executes. The condition for this is: "VersionNT>=500 AND Installed = FALSE"
The UNINSTALL custom action is:
InstallDriver.exe -uninstall
This uninstall action is also a "Commit Execution" type and is set at the "After InstallFiles" sequence. It is also synchronous (check exit code), but the condition is "VersionNT>=500 AND Installed = TRUE". It is set to fire before the install action and is properly being skipped on a fresh install, but on an uninstall, it is not firing.
Any ideas?
--Basim
Installed
To see if the property is undefined, the condition would be:
Not Installed
You might also find this InstallShield newsletter article useful: http://www.installshield.com/news/newsletter/0212-articles/msiconditions.asp .
(is the syntax correct?)
For install:
VersionNT>=500 AND Not Installed
For uninstall:
VersionNT>=500 AND Installed
Is this right?
(VersionNT>=500) And (Not Installed)
but your form should work, too.
If you want to detect a complete uninstall, though, "Installed" isn't enough (it succeeds for any type of maintenance mode); perhaps see that newsletter article for tips about REMOVE="ALL" and the like...