0

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

  • Initial Version (Base): 10.3.0.0
  • Product Version (Currently being installed): 10.3.0.106

Setup Details

  • Using a WiX bundle to package MSIs and prerequisites
  • Clean installation works perfectly
  • Major upgrade works as expected (when changing product codes)
  • Minor upgrade appears to fail (only changing version number and keep everything else static)

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

  • WiX version: 4

Any insights or suggestions would be greatly appreciated.

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

3 Comments

I can't do that since this is the versioning convention we have been following for years. Also, this issue didn't occur when using InstallShield. Why is this occurring for WiX?
I've been out of the InstallShield/MSI dev gain for a bit so someone else my have to step in. I just remember that the version only handling 3 spots is a problem with MSIs
You may try searching the install/upgrade log for "upgrading." If I remember correctly the log will show you why or why not it is upgrading a component.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.