1

We want to use the popular major.minor.update.build_number versioning scheme. Our next product update will be version 1.0.1.

Our in-house Config Management mechanism produces Release builds and Daily builds, all of which are automatically packed as MSI's. Developers and QA regularly download builds and update test rigs with them to verify bug fixes etc.

Each CM build increments the build_number field, so build versions might look something like this

1.0.1.001 // Release build  
1.0.1.002 // Daily build  
1.0.1.003 // Another Daily build  
1.0.1.004 // New Release build  

Our problem is that, because our ProductVersion doesn't change, Microsoft's Installer technology won't let us run those MSI's as updates on our test rigs. We have to completely uninstall the existing product and reinstall the desired MSI.

Is there a way to author our MSI's to apply updates regardless of the ProductVersion stamp?

We use InstallShield. Is there an alternative installation technology that would allow us to do what we want?

Thanks!

1 Answer 1

1

You should be able to do a minor upgrade in this situation. If your goal is to do major upgrades, you should be changing one of the first three fields of the ProductVersion property.

If your goal is to swim upstream then you'll need a custom action inserted between FindRelatedProducts and RemoveExistingProducts to override MSI's built-in product detection logic. Basically you'll want to use the Msi API to find installed ProductCodes for your UpgradeCode.

Personally I reccomend

Major.Minor.Build.Patch so my incremented build sequence is

1.0.1.0 1.0.2.0 1.0.3.0 1.0.4.0 1.1.5.0 1.1.6.0 1.1.7.0

The .0 allows me flexibility to rebuild assemblies and ship them as patches if needed.

1
  • Thanks Christopher. Our goal is to be able to perform a full product installs, or upgrades, from a regularly auto-generated MSI, without ever changing any part of its Major.Minor.Build triad. It looks like this just isn't possible without changing the installer script between each rebuild. We may have to adopt your, and Microsoft's, ProductVersion scheme.
    – dripfeed
    Nov 3, 2010 at 13:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.