Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 3

How to always force a major upgrade?

In our CI/CD we update the build number (4th digit) every build and don't always update the other three digits.  If you install a version with a different build number then it adds a second entry for the application to Add/Remove Programs.  Is it possible to force a Major Upgrade when only the build number changes? -> 

0 Kudos
3 Replies
Revenera Moderator Revenera Moderator
Revenera Moderator

There are few things going on here - firstly Windows Installer does not read the 4th part of the version number. So the change that you are making will not cause any change to the Windows Installer behaviour:

Secondly - you can only force a Major Upgrade by changing the ProductCode in your project as well. This allows the Windows Installer to understand that you want the install to behave like a Major Upgrade.

We have step-by-step instructions on how to create a Major Upgrade here:


0 Kudos

We change the ProductCode on every build so that the install would see it as a Major Upgrade. It works for everything but the 4th digit change. So since Windows Installer doesn't recognize it, it isn't possible?
0 Kudos

Both the Product and Package codes need to change in order to make a major upgrade.  Do not change the Upgrade code.

0 Kudos