vclamnet
Posts: 23
Joined: Fri Nov 02, 2007 6:27 pm

How to Properly use version#, product code, upgrade code

According to Microsoft (MSDN) Windows Installer Guide:
Minor upgrade - will not have product code change but only product version# change
Major upgrade - both product code and version# change

Advanced Installer only have version# in the format x.x.x so everytime I change a version# from 8.0.1 to 8.0.2 it asks if I want "to generate new product code? This is required for the automated upgrade or side by side installs"
in my project I select Automatically upgrade older product version and I am using updater and enable advanced updater.
According to the windows installer guide I should answer NO because this is a minor change. However, according to Advanced Installer documentation I should answer YES in order for the automatic upgrade of older version to work.

Can someone please help clarify this for me?
Thanks,
Vinh,
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Advanced Installer (based on the Windows Installer upgrade technology) offers two methods of upgrading an installation:
- a minor upgrade which changes just a few resources (this is represented by a patch)
- a major upgrade which performs changes to the installation (it doesn't matter how much the installation is changed)

A minor upgrade is done by using a patch. In this case the version changes but the Product Code remains the same (You answer "No" when prompted about changing the Product Code).

Another way to do a minor upgrade is this:
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

A major upgrade is done by using the automated upgrade feature works like this:
- you install a MSI on the target machine,
- you increase it's version and update some of it's files
- you answer "Yes" when prompted about changing the Product Code
- when running the updated MSI on the target machine the old installation will be removed and the updated package will be installed
According to the windows installer guide I should answer NO because this is a minor change.
Please note that the Windows Installer Guide doesn't refer to the actual changes you do in your package (if they are minor or major), it refers to the Upgraded package (if the Product Code changes or not).

You can read more about minor and major upgrades here:
http://msdn2.microsoft.com/en-us/library/aa370037.aspx
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”