ICE61: this product should only remove old versions of itself

I followed the second answer here to avoid the “already installed” message for my new installation packages. So these are the things that I changed. Everything is fine and I am installing newer versions.

<Product Id="*" Name="Product Name" Language="1033" Version="1.9.0.0" Manufacturer="ABCD" UpgradeCode="e820aa3a-0288-45d8-a357-41bc065bbed0"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> 

However, the compiler tells me the following warning message:

ICE61: This product should only remove older versions. The maximum version is not less than the current one. (1.9.0.0 1.9.0.0)

I can’t just ignore this message. So the question is how to fix this warning?

+5
source share
2 answers

The warning comes from AllowSameVersionUpgrades=Yes . As you write in the comment “I never wanted to upgrade between identical versions and always increase the second (or even the first)”, then you do not need AllowSameVersionUpgrade , so just delete it.

+2
source

WiX allows you to install with the same version, but Microsoft does not recommend it, therefore, a warning message.

You can either continue as it is (and live with the compiler at a party), or change the MajorUpgrade section to this:

 <MajorUpgrade AllowSameVersionUpgrades="no" DowngradeErrorMessage="A newer version of [ProductName] is already installed. If you are sure you want to downgrade, remove the existing installation via the Control Panel" /> 
+1
source

All Articles