The deployment project shipped with Visual Studio is NECESSARY to handle anything other than the simplest scenarios.
In your case, you need to do one of the following:
- Determine how to set the flag before removing the original MSI, which you can check in the installer class.
- Request the user visually in the installer class.
- Redesign your install / uninstall logic so that it does not depend on the situation in which the uninstaller was called.
source share