Did you remove any Components from Feature_D, or did you change any component's guid (including any changes that would cause an autogenerated guid to be different)?
That is the most likely cause. Elsewhere in the log you would possibly see lines that contain "SELMGR" describing why things don't match. Please see the following blog: http://blogs.msdn.com/heaths/archive/2006/01/23/516457.aspx As a best practice I always include <Property Id="MSIENFORCEUPGRADECOMPONENTRULES" Value="1"/> in every <Product> to help prevent this issue: instead of advertising the feature, it errors out the attempted upgrade. While it doesn't do anything in pre-MSI 3.0 systems, it doesn't hurt anything either, and it causes you to not ship upgrades that contain these errors (assuming you always test each build against each of your previous releases). -----Original Message----- From: cemiles [mailto:[email protected]] Sent: Wednesday, August 19, 2009 10:47 AM To: [email protected] Subject: Re: [WiX-users] RemoveExistingProducts detects previous version, but does not remove I found something very interesting in the log that is probably causing this. MSI (s) (2C:3C) [13:01:48:039]: Feature: Feature_A; Installed: Absent; Request: Null; Action: Null MSI (s) (2C:3C) [13:01:48:039]: Feature: Feature_B; Installed: Local; Request: Absent; Action: Absent MSI (s) (2C:3C) [13:01:48:039]: Feature: Feature_C; Installed: Local; Request: Absent; Action: Absent MSI (s) (2C:3C) [13:01:48:039]: Feature: Feature_D; Installed: Advertise; Request: Absent; Action: Absent MSI (s) (2C:3C) [13:01:48:039]: Feature: Feature_E; Installed: Local; Request: Absent; Action: Absent MSI (s) (2C:3C) [13:01:48:039]: Feature: Feature_F; Installed: Local; Request: Absent; Action: Absent I'm not sure how Feature_D is getting set as advertised, considering this is a major upgrade. I'm researching this now, but am curious have you seen anything like that before? cemiles wrote: > > I'll gather up some more logging. Thanks Blair. > > As far as the sequence, I tried between InstallValidate & > InstallInitialize for one run, and also tried bumping it after > InstallInitialize and before any other in-script execution CA. I'd rather > the product be removed first before installing the new one. > > > Blair-2 wrote: >> >> The two next interesting pieces of information at this point would be the >> location in the sequence of the RemoveExistingProducts action and (much) >> more of the log following the "MSI (s) (B8:20) [11:53:10:223]: PROPERTY >> CHANGE: Adding REMOVE property. Its value is 'ALL'." Line. >> >> -----Original Message----- >> From: cemiles [mailto:[email protected]] >> Sent: Monday, August 17, 2009 8:01 AM >> To: [email protected] >> Subject: [WiX-users] RemoveExistingProducts detects previous version, but >> does not remove >> >> >> I've tried following the advice on the msdn documentation that states >> there >> are 3 different scenarios where you can schedule RemoveExistingProducts. >> However, my new product gets installed, and the old one remains. >> >> I'll start with the relevant log snip. I'm not sure what I'm missing in >> this case... >> >> Note 1) I’m changing the INSTALLDIR to something different, but the old >> product should still be removed regardless from my understanding. >> Note 2) I’m noticing 1 sub-folder from the MSI1 INSTALLDIR is being >> removed, >> but nothing else. >> Note 3) The Product/@UpgradeCode is present in MSI1 >> >> MSI1 ProductCode: D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx >> MSI2 New ProductCode: A809C863-xxxx-xxxx-xxxx-xxxxxxxxxxxx >> UpgradeCode: 8EEF7548-xxxx-xxxx-xxxx-xxxxxxxxxxxx >> MSI2 Upgrade Tag: >> >> <!-- Upgrade Tag --> >> <Upgrade Id="8EEF7548-xxxx-xxxx-xxxx-xxxxxxxxxxxx"> >> <UpgradeVersion IgnoreRemoveFailure="no" OnlyDetect="no" >> Maximum="$(var.MajorVersion).$(var.MinorVersion).$(var.PointRelease)" >> IncludeMaximum="no" Minimum="1.0.0" IncludeMinimum="yes" >> Property="SECURECUSTOMPROPERTIES"/> >> </Upgrade> >> >> >> UI Sequence… >> >> MSI (c) (E4:C8) [11:50:26:020]: Doing action: FindRelatedProducts >> Action 11:50:26: FindRelatedProducts. Searching for related applications >> Action start 11:50:26: FindRelatedProducts. >> FindRelatedProducts: Found application: >> {D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx} >> MSI (c) (E4:C8) [11:50:26:036]: PROPERTY CHANGE: Adding >> SECURECUSTOMPROPERTIES property. Its value is >> '{D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx}'. >> Action ended 11:50:26: FindRelatedProducts. Return value 1. >> >> >> Execute Sequence… >> >> MSI (s) (B8:9C) [11:53:06:208]: Doing action: FindRelatedProducts >> Action 11:53:06: FindRelatedProducts. Searching for related applications >> Action start 11:53:06: FindRelatedProducts. >> MSI (s) (B8:9C) [11:53:06:208]: Skipping FindRelatedProducts action: >> already >> done on client side >> Action ended 11:53:06: FindRelatedProducts. Return value 0. >> >> >> Execute Sequence… >> >> MSI (s) (B8:9C) [11:53:09:645]: Doing action: RemoveExistingProducts >> Action 11:53:09: RemoveExistingProducts. Removing applications >> Action start 11:53:09: RemoveExistingProducts. >> RemoveExistingProducts: Application: >> {D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, >> Command line: UPGRADINGPRODUCTCODE={A809C863-xxxx-xxxx-xxxx-xxxxxxxxxxxx} >> CLIENTUILEVEL=0 REMOVE=ALL >> MSI (s) (B8:20) [11:53:09:676]: Resetting cached policy values >> MSI (s) (B8:20) [11:53:09:676]: Machine policy value 'Debug' is 0 >> MSI (s) (B8:20) [11:53:09:692]: ******* RunEngine: >> ******* Product: {D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx} >> ******* Action: >> ******* CommandLine: ********** >> MSI (s) (B8:20) [11:53:10:114]: End dialog not enabled >> MSI (s) (B8:20) [11:53:10:114]: Original package ==> >> C:\WINDOWS\Installer\c9372.msi >> MSI (s) (B8:20) [11:53:10:114]: Package we're running from ==> >> C:\WINDOWS\Installer\c9372.msi >> MSI (s) (B8:20) [11:53:10:145]: APPCOMPAT: looking for appcompat database >> entry with ProductCode '{D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx}'. >> MSI (s) (B8:20) [11:53:10:145]: APPCOMPAT: no matching ProductCode found >> in >> database. >> MSI (s) (B8:20) [11:53:10:145]: Machine policy value 'DisablePatch' is 0 >> MSI (s) (B8:20) [11:53:10:145]: Machine policy value 'AllowLockdownPatch' >> is >> 0 >> MSI (s) (B8:20) [11:53:10:145]: Machine policy value 'DisableLUAPatching' >> is >> 0 >> MSI (s) (B8:20) [11:53:10:145]: Machine policy value >> 'DisableFlyWeightPatching' is 0 >> MSI (s) (B8:20) [11:53:10:145]: APPCOMPAT: looking for appcompat database >> entry with ProductCode '{D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx}'. >> MSI (s) (B8:20) [11:53:10:145]: APPCOMPAT: no matching ProductCode found >> in >> database. >> MSI (s) (B8:20) [11:53:10:145]: Transforms are not secure. >> MSI (s) (B8:20) [11:53:10:145]: Command Line: >> UPGRADINGPRODUCTCODE={A809C863-xxxx-xxxx-xxxx-xxxxxxxxxxxx} >> CLIENTUILEVEL=0 >> REMOVE=ALL >> MSI (s) (B8:20) [11:53:10:145]: PROPERTY CHANGE: Adding PackageCode >> property. Its value is '{DA31D4A9-xxxx-xxxx-xxxx-xxxxxxxxxxxx}'. >> MSI (s) (B8:20) [11:53:10:145]: Product Code passed to Engine.Initialize: >> >> '{D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' >> MSI (s) (B8:20) [11:53:10:145]: Product Code from property table before >> transforms: '{D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' >> MSI (s) (B8:20) [11:53:10:145]: Product Code from property table after >> transforms: '{D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' >> MSI (s) (B8:20) [11:53:10:145]: Product registered: entering maintenance >> mode >> MSI (s) (B8:20) [11:53:10:145]: PROPERTY CHANGE: Adding ProductState >> property. Its value is '5'. >> MSI (s) (B8:20) [11:53:10:145]: PROPERTY CHANGE: Adding >> ProductToBeRegistered property. Its value is '1'. >> MSI (s) (B8:20) [11:53:10:161]: Package name retrieved from configuration >> data: 'MyProduct.msi' >> MSI (s) (B8:20) [11:53:10:161]: Determined that existing product (either >> this product or the product being upgraded with a patch) is installed >> per-machine. >> MSI (s) (B8:20) [11:53:10:208]: Note: 1: 2262 2: AdminProperties 3: >> -2147287038 >> MSI (s) (B8:20) [11:53:10:208]: PROPERTY CHANGE: Modifying ALLUSERS >> property. Its current value is '2'. Its new value: '1'. >> MSI (s) (B8:20) [11:53:10:208]: Machine policy value 'DisableMsi' is 1 >> MSI (s) (B8:20) [11:53:10:208]: Machine policy value >> 'AlwaysInstallElevated' >> is 0 >> MSI (s) (B8:20) [11:53:10:208]: User policy value 'AlwaysInstallElevated' >> is >> 0 >> MSI (s) (B8:20) [11:53:10:223]: Product >> {D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx} is admin assigned: LocalSystem >> owns >> the publish key. >> MSI (s) (B8:20) [11:53:10:223]: Product >> {D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx} is managed. >> MSI (s) (B8:20) [11:53:10:223]: Running product >> '{D6942ED5-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' with elevated privileges: >> Product >> is assigned. >> MSI (s) (B8:20) [11:53:10:223]: PROPERTY CHANGE: Adding >> UPGRADINGPRODUCTCODE >> property. Its value is '{A809C863-xxxx-xxxx-xxxx-xxxxxxxxxxxx}}'. >> MSI (s) (B8:20) [11:53:10:223]: PROPERTY CHANGE: Adding CLIENTUILEVEL >> property. Its value is '0'. >> MSI (s) (B8:20) [11:53:10:223]: PROPERTY CHANGE: Adding REMOVE property. >> Its >> value is 'ALL'. >> >> >> Thanks. >> -- >> View this message in context: >> http://n2.nabble.com/RemoveExistingProducts-detects-previous-version%2C-but-does-not-remove-tp3459570p3459570.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 >> [email protected] >> 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 >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > -- View this message in context: http://n2.nabble.com/RemoveExistingProducts-detects-previous-version%2C-but-does-not-remove-tp3459570p3474162.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 [email protected] 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

