First, since you really have to consider at this point you have two differing products due to the change in the product, upgrade, and package codes, you will need multiple entries for the upgrade table to address your situation, each with a differing version range and each with its own independent property to store a value to be used later.
To get to why this is not working, the key to a major upgrade is that the property in the upgrade table gets a value of a matching product code after the FindRelatedProducts action occurs. What could be done is a simple debugging VB custom action that displays the value of these properties immediately after that action to show the value. little.forest wrote: > > Hi, > > We're using WiX version 3. We do Major Upgrade. It works fine. I mean, > when installing a new version, the old version of the software is > uninstalled first, then the new software is installed. > "0F8634B0-560B-4473-BBC3-46D885AC8E04" is the upgrade code. Our new > software version is 3.x.y series. Let's say, when install 3.2.0 on top of > 3.1.0, the 3.1.0 got uninstalled firstly. It works. > Here is the code: > <Upgrade Id='0F8634B0-560B-4473-BBC3-46D885AC8E04'> > <UpgradeVersion Property="OLDAPPFOUND" > OnlyDetect='no' > Minimum="0.0.0" > IncludeMinimum="yes" > Maximum="$(var.ProductVersion)" > IncludeMaximum="no" > /> > <UpgradeVersion Property="NEWAPPFOUND" > Minimum="$(var.ProductVersion)" > IncludeMinimum="no" > OnlyDetect="yes" > /> > </Upgrade> > <CustomAction Id="NewerVersionDetected" Error="There is a later version of > this product installed."/> > <InstallExecuteSequence> > <RemoveExistingProducts After='InstallValidate' /> > <Custom Action="NewerVersionDetected" > After="FindRelatedProducts">NEWAPPFOUND</Custom> > </InstallExecuteSequence> > <InstallUISequence> > <Custom Action="NewerVersionDetected" > After="FindRelatedProducts">NEWAPPFOUND</Custom> > </InstallUISequence> > > > > > Now, we'd like do upgrade for an old product which has a different upgrade > code, you know. Our old software version is 2.a.b series, let's say, > something like 2.2.0. During installing of the 3.x.y software, we'd like > to also uninstall 2.a.b software. > To support this "uninstall old version of software", I thought I just need > to add one more entry in upgrade table to include this old software's > upgrade code. So I added this code: > <Upgrade Id='1B28D0BC-EF1A-4FE2-9020-44F37CB8DBB8'> > <UpgradeVersion Property="OLDPRODUCTFOUND" > OnlyDetect='no' > Minimum="1.0.0.0" > IncludeMinimum="yes" > Maximum="100.0.0.99999" > IncludeMaximum="no" > /> > </Upgrade> > > > The old proudct upgrade code is "1B28D0BC-EF1A-4FE2-9020-44F37CB8DBB8". > So now, if I have both 2.2.0 and 3.1.0 installed, then when I install > 3.2.0, I expected both 2.2.0 and 3.1.0 will be removed. But in reality, > only the 2.2.0 is uninstalled, the version 3.1.0 is not installed. Then I > got two instance of software 3.1.0 and 3.2.0. Also, in control panels, > there are two entries. > Why 3.1.0 isn't removed? How to fix this? Please point me out the > problems. > Many thanks!!! > /Brian > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://n2.nabble.com/Major-Upgrade-How-to-do-major-upgrade-for-the-currect-product-and-a-previous-product-tp3493021p3529374.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users