The MajorUpgrade element was only introduced in v3.5, are you sure you have the latest version? I use this AllowSameVersionUpgrades="yes" in my installs without a problem - other than being flamed here :-) I would use this in preference to the upgrade table entries as it is easier but this also works:
<Upgrade Id="$(var.UpgradeCode)"> <UpgradeVersion Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" /> <!-- Including 'IncludeMaximum="yes"' will generate ICE61 but will allow upgrades will the same version number --> <UpgradeVersion Minimum="0.0.0" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="yes" Property="PREVIOUSVERSIONDETECTED" /> </Upgrade> (I think your code need IncludeMinimum="no" in the detect only section.) Neil -----Original Message----- From: Umeshj [mailto:umesh_jogle...@hotmail.com] Sent: 19 January 2011 13:57 To: wix-users@lists.sourceforge.net Subject: [WiX-users] SameVersion Upgrade Hi, I want to allow same version upgrades to take care of the fourth element in the version numbers. According to http://wix.sourceforge.net/manual-wix3/wix_xsd_majorupgrade.htm, I can use AllowSameVersionUpgrades attribute to do this. However, I am getting build errors as this element is not recognized. error CNDL0004: The MajorUpgrade element contains an unexpected attribute 'AllowSameVersionUpgrades'. Has this been dropped from the schema in 3.5? How else can I achieve the same version upgrade? I have tried, <Upgrade Id="{F57F3EEE-DE43-49A8-89CF-94477062396F}"> <UpgradeVersion Minimum="4.9.1" Property="NEWERPRODUCTFOUND" OnlyDetect="yes" IncludeMinimum="no" /> <UpgradeVersion Minimum="4.9.1" Maximum="4.9.1" Property="FOUNDSELF" OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="yes" /> <UpgradeVersion Minimum="1.0.0.0" Maximum="4.9.1" Property="PREVIOUSVERSIONSINSTALLED" OnlyDetect ="no" IncludeMinimum="yes" /> </Upgrade> For FOUNDSELF case above, shouldn't install allow upgrade as OnlyDetect attribute is set to 'no'? This, however, results in an error message during installation that another version has already been installed and this needs to be first uninstalled before proceeding with the install. Thanks Umesh -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/SameVersio n-Upgrade-tp5939737p5939737.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users