Menu

#2405 AllowSameVersionUpgrades='yes' causes LGHT1076 warning

v3.5
closed
light (353)
2014-08-18
2010-12-29
No

Adding a AllowSameVersionUpgrades='yes' to a MajorUpgrade element causes the following warning:

warning LGHT1076 : ICE61: This product should remove only older versions of itself. The Maximum version is not less than the current product. (1.0.0.0 1.0.0.0)

Setting the AllowSameVersionUpgrades property means that I want the exact behavior I'm being warned against (as far as I understand), so the warning should probably be suppressed?

Tested with Wix 3.5.2415.0

Discussion

  • Rob Mensching

    Rob Mensching - 2010-12-29

    The warning exists because you are doing something that is not recommended. It's possible, you can do it. The Windows Installer team (who owns the ICEs) just doesn't think it is a good idea. You can suppress the ICE if you want.

     
  • Knut Arild Erstad

    I understand that ICE61 is not owned by wix, and I agree that what I'm trying to do is not ideal. But IMHO the alternative (the default behavior) is worse, since it can cause multiple products with the same version and upgrade code (but different product codes) to be installed.

    Is there a recommended way to avoid this problem without either changing the Product Id manually every time the version changes, or using Product Id='*' and AllowSameVersionUpgrades='yes'?

     
  • Rob Mensching

    Rob Mensching - 2010-12-29

    Please take discussion about how to use the WiX toolset to wix-users@lists.sourceforge.net.

    Short answer: if you're expecting major upgrades then you want to be changing the ProductCode.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).