PDA

View Full Version : upgrades using four version fields



yonitr
01-10-2005, 04:39 AM
Hi,
Is there a way to do major or minor upgrades using four version fields (xxx.xxx.xxx.xxx) and not three?

Stefan Krueger
01-10-2005, 05:23 AM
For a Major Upgrade the MSI engine will only compare the first three fields. If you need to check the fourth filed you would have to use a custom launcher or a custom action to do this.
A Minor Update in genreal doesn't check the ProductVersion at all, except if it's a patch and you defined a version relationship.
Note that in all cases the file overwrite rules will always check all four fields of the version information of each file. The three filed limit only applies to the ProductVersion property.

yonitr
01-11-2005, 02:44 AM
Thanks for the fast reply.
Do you think that there is a way to have a productVersion with four version fields (to be displayed anywhere) and a custom action will compare the fourth field for the major upgrade?
How can I use a custom action to check the fourth version field?

Stefan Krueger
01-11-2005, 06:22 AM
You would have to create a custom action that reads the full ProductVersion from the old setup (as identified by the result from processing the Upgrade table) and compare it to your current ProductVersion.