Unless you authored the "error message during installation that another
version has already been installed and this needs to be first uninstalled
before proceeding with the install" then might be attempting a minor update
(my term for what would be a minor upgrade, except the fourth part of the
version is ignored, turning it into a small update), not a major upgrade.
Are you sure you are changing ProductCodes? If the ProductCode is not
different, both the MajorUpgrade element and the Upgrade/UpgradeVersion
elements are ignored.

-Blair

-----Original Message-----
From: Umeshj [mailto:umesh_jogle...@hotmail.com] 
Sent: Wednesday, January 19, 2011 5:57 AM
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/SameVersion-Up
grade-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


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to