Hello,
If you run the same installation package for the second time then Windows Installer will run the installer in maintenance mode and the user will then be presented with choices to alter the installed product, repair it or remove it (done through the
MaintenanceTypeDlg). This is happening because the installation package has the same
PackageCode GUID. A new PackageCode is generated each time you build your project. Think of the PackageCode as some sort of checksum. No two .msi files should ever have the same PackageCode unless they are identical.
Please take a closer look on the
Product Identification article.
Windows Installer can upgrade the original package only if the modified one has a
higher version and a
different Product Code. If you don't want to create a new version of the package, you need to uninstall the original MSI before installing the modified one. However, if you want to create a new version which will upgrade the old one, you can follow the steps explained in the
Upgrades article.
If you have other questions, please let us know.
Best regards,
Dan