Yes, all the components with matching KeyPaths should have the same Component Guids. Several messages explaining about how to follow the Component Rules have been on the list recently.
What is likely happening is that the new installation overwrites the common files, then the older installation removes the common files since the component guids don't match. -----Original Message----- From: Kevin Gallagher [mailto:ke...@hotmail.com] Sent: Thursday, September 10, 2009 3:35 PM To: WiX-users@lists.sourceforge.net Subject: [WiX-users] Major upgrade problem I have an installer that needs to completely remove the previous version and install in the same directory. The two versions have only a handful of files in common and all of these files need to be upgraded. The new installer will completely uninstall the old product with no problems however none of the files the two installers have in common are installed. The pertinent xml is below, what do I have to do to get the common files from newer installation copied to the installation directory? Do I have to have the component and/or file Ids or Guids match from one installer to the next? Note : For the 'RemoveExistingProducts' element I have also tried setting the 'After' attribute to 'InstallValidate' with the same results. Any help would be greatly appreciated. <Upgrade Id="!(loc.Property_UpgradeCode)"> <UpgradeVersion Minimum="8.0.0" IncludeMinimum="no" OnlyDetect="yes" Language="1033" Property="NEWPRODUCTFOUND" /> <UpgradeVersion Minimum="1.1.2" IncludeMinimum="yes" Maximum="8.0.0" IncludeMaximum="no" Language="1033" Property="UPGRADEFOUND" /> </Upgrade> <CustomAction Id="PreventDowngrading" Error="Newer version already installed." /> <InstallExecuteSequence> <Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> <RemoveExistingProducts After="InstallFinalize" /> </InstallExecuteSequence> <InstallUISequence> <Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWPRODUCTFOUND</Custom> </InstallUISequence> ---------------------------------------------------------------------------- -- 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