1

I use WIX to install test product. It's very siple with default wix settigs.

If I set product id="*", install, rebuild and instal again, i have TWO products in programs list. Why?

my product:

<Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.6.4" Manufacturer="Timyrlan" UpgradeCode="B3CB410C-6D45-44F0-9920-81E43A54B3ED">

P.S. same problem if i change 4-th digit of version. And everything works fine if i change 3 digit

1.0.0.0->1.0.0.1 - problem

1.0.0.0->1.0.1.0 - works fine

Why it's instal twice? How can i upgrade product using last digit?

Timur Lemeshko
  • 2,747
  • 5
  • 27
  • 39

1 Answers1

3

Ignoring Digits: Extract from the MSI SDK documentation for the ProductVersion property:

"Note that Windows Installer uses only the first three fields of the product version. If you include a fourth field in your product version, the installer ignores the fourth field...At least one of the three fields of ProductVersion must change for an upgrade using the Upgrade table."

AllowSameVersionUpgrades: There is the WiX concept: AllowSameVersionUpgrades="yes" - which I do not like - that some people use to allow upgrades with the 4th digit used. I do not have a list of all the problems that result (again: I don't like this concept). Maybe have a look here: Wix MajorUpgrade problems.

Advanced Upgrade Table: Forgot one important link. How to gain fine-grained control of the Upgrade table: Adding entries to MSI UpgradeTable to remove related products. And the issue of downgrades: Run Wix Custom action only during uninstall and not during Major upgrade.

Further Helpful Links:


Links:

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164