Maazaowski
Maazaowski

Reputation: 60

WiX v4: Minor Upgrade not working as expected while Major Upgrade works fine

I'm experiencing issues with minor upgrades in WiX v4 while major upgrades are working correctly. While the installer says successful, when trying to run the installed application, it throws errors as if the upgrade didn't complete properly, but clean installations and major upgrades work fine.

Current Implementation

<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="$(var.InitialVersion)"
   Maximum="$(var.ProductVersion)"
   Property="PREVIOUSVERSIONSINSTALLED"
   IncludeMinimum="yes"
   IncludeMaximum="yes" />
</Upgrade>

<InstallExecuteSequence>
   <RemoveExistingProducts After="InstallInitialize"/>
</InstallExecuteSequence>

Version Details

Setup Details

Specific Requirements

I need to implement logic that:

  1. Detects if the upgrade is major or minor
  2. Performs the appropriate upgrade type based on the detection

Questions

  1. What could be causing the minor upgrade to fail while major upgrades work fine?
  2. Is there a recommended approach to implement conditional upgrade logic based on version detection?
  3. Are there any known issues with minor upgrades in WiX v4 that I should be aware of?

Environment

Any insights or suggestions would be greatly appreciated.

Upvotes: 0

Views: 46

Answers (1)

Doc
Doc

Reputation: 708

Try resetting your version to 10.3.106 instead of 10.3.0.106. Then test it again. I seem to remember something about MSI only recognizing the first 3 numbers in the version during a minor upgrade.

Upvotes: 0

Related Questions