I have created a DLL custom action and it works beautifully. It returns 0 to continue the uninstall and 1602 to abort. There is no nasty error message about failure.
I have tried different return values suggested by the MS documentation (ERROR_INSTALL_USEREXIT) but all of the non-zero return values display the same error message. The continue/cancel goes through so the return value isn't being entirely ignored.
What I'm reading in other places suggests that ...
This may be a simple problem. I'd like to run a custom action during uninstall that checks a few things and then asks the user if they'd like to continue with the uninstall or cancel. I can get this to work except that whenever the user cancels they get the message:
Is there a way to author an installation so that it will upgrade per-user installation to another per-user installation and a per-machine installations to another per-machine installation? Basically, just detect what it's upgrading and use that setting? And if it's a fresh install then default to ...
FOLLOW US
Get the latest news in Application Packaging