I have a .NET deployment project. I would like to add a custom uninstall action that checks certain conditions and optionally cancels the uninstallation. Is that possible?
As far as I figured out, it’s only possible to define custom actions that cannot influence the main installer itself.
The answer is actually quite easy but also quite ugly.
At the point in the custom action where I want to cancel the uninstallation I just throw an
ApplicationException: