What does your verbose debug install log say? Was the OLDPRODUCTFOUND property ever set?
-----Original Message----- From: little.forest [mailto:little.for...@ymail.com] Sent: Friday, August 21, 2009 3:52 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Major Upgrade: How to do major upgrade for the currect product and a previous product? 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 ------------------------------------------------------------------------------ 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