Hello,
As explained in our
"Product Identification" article:
Also, it is important to note that two products with the same ProductCode can not be installed on the same computer. Windows Installer will prevent this with an error reading:
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Programs and Features in the Control Panel.
Basically, your product is identified by the
ProductCode property. If you try to install two packages having the same
ProductCode, even if the packages are totally different, Windows will think that it is the same package and will return the above error.
This check is done exactly at the start of the installation and it will fail if it notices that another product having the same ProductCode is already installed.
With that being said, if you want your package to upgrade an older version of itself, the solution is to change its' ProductCode.
In my case I need to keep the same GUID.
Could you please elaborate a bit more on this? Why would you need to keep the same ProductCode between the two versions of your product?
If I understand this correctly the automatic uninstall will not work.
Indeed, you understood this correctly.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging