Hi Ron,
When the
Uninstall a package with the same version (if found) option is enabled then if a package with the same
product code and version as the current package is already installed, enabling this option will uninstall it.
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.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging