4

I tried nearly all solutions list on page How to implement WiX installer upgrade? , but didn't upgrade successful. always prompt this message when I was upgrade:

"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 Add/Remove Programs on the Control Panel."

When I trace the installer log, it shows:

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 Add/Remove Programs on the Control Panel. {CCA05551-C990-4ACA-9B01-A65AA9FBF884} MSI (c) (50:40) [13:49:33:462]: Product: -- Configuration failed.

MSI (c) (50:40) [13:49:33:462]: Windows Installer reconfigured the product. Product Name: Product Version: 2.0.1.6. Product Language: 1033. Reconfiguration success or error status: 1638.


Any configuration I missed?

Community
  • 1
  • 1
Cooper.Wu
  • 4,335
  • 8
  • 34
  • 42
  • 2
    Solved, two notes: 1) ProductCode need to change, 2), only the last version changed won't work, e.g. from 1.0.0.0 to 1.0.0.1 – Cooper.Wu Oct 18 '11 at 07:45

1 Answers1

5

To make a package perform a major upgrade you must increase its ProductVersion and change the ProductCode.

You can read about different types of upgrades here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa369786(v=vs.85).aspx

Cosmin
  • 21,216
  • 5
  • 45
  • 60
  • yes, I changed the Version every time I build MSI, but I have question about ProductCode, if we changed this value, how to installer detect the related product? – Cooper.Wu Oct 18 '11 at 06:29
  • it works after ProductCode changed. still don't understand how installer detect related products? – Cooper.Wu Oct 18 '11 at 06:41
  • @Cooper.Wu, it uses the `UpgradeCode`, see http://msdn.microsoft.com/en-us/library/windows/desktop/aa372399(v=vs.85).aspx – wimh Oct 18 '11 at 08:10