I have an install and an uninstall dialog in my custom WiX 3.7 installer. This comes from my custom Bootstrapper Application. When my software is not installed and I start the installer, it shows the installation dialog. When it is installed and I start the installer, it shows the uninstall dialog (a custom dialog).
When I now rebuild the installer without changing anything in the WiX installer project and start the installer while the software is installed, it does not show the uninstall dialog anymore. Instead it shows the installation dialog.
The check whether the application is installed or not is made in the DetectBegin method of the Bootstrapper. However, when I click on install, it realizes it is already installed and aborts the process.
Why does this behavior happen? Does the Bootstrapper check if it is installed to decide which dialog to show? So does it think it is a different Bootstrapper, because it was rebuilt?
If so how can I make the Bootstrapper show the uninstall dialog when my application with the same version is already installed? Do I have to include some condition?