You may need to look at the log more carefully. If the uninstall of the older version failed it will roll back and reinstall, and that will leave you with both products installed. That's the issue with RemoveExistingProducts -after- InstallFinalize where it's outside the transacted part of the install.
Phil Wilson -----Original Message----- From: Tim Walters [mailto:rea...@gmail.com] Sent: Thursday, October 27, 2011 1:14 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Windows Installer won't remove existing during upgrade I'm trying to properly implement an upgrade (minor version number change which should trigger a replace). However, Windows Installer leaves older versions installed without touching them (Leaves the program files behind and the Uninstall Programs reg entry). I'm using the same upgradecode for all versions and always changing the product and package codes. I've tried to implement this the following way: <Upgrade Id="UPGCODE"> <UpgradeVersion Property="DOWNGRADE" OnlyDetect="yes" Minimum="VERSION" IncludeMinimum="no" /> <UpgradeVersion Property="UPGRADE" OnlyDetect="no" Minimum="VERSION" Maximum="VERSION" IncludeMinimum="yes" IncludeMaximum="no" /> </Upgrade> <InstallExecuteSequence> <RemoveExistingProducts After="InstallFinalize" /> </InstallExecuteSequence> >From the logs I can see it runs but I don't know it if attempted to do anything: MSI (c) (74:58) [12:32:12:069]: Doing action: FindRelatedProducts Action 12:32:12: FindRelatedProducts. Searching for related applications Action start 12:32:12: FindRelatedProducts. Action ended 12:32:12: FindRelatedProducts. Return value 1. ... DEBUG: Error 2911: Could not remove the folder C:\Config.Msi\. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2911. The arguments are: C:\Config.Msi\, , MSI (s) (BC:80) [12:32:27:466]: Note: 1: 2318 2: MSI (s) (BC:80) [12:32:27:466]: No System Restore sequence number for this installation. MSI (s) (BC:80) [12:32:27:466]: Unlocking Server MSI (s) (BC:80) [12:32:27:544]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'. Action ended 12:32:27: InstallFinalize. Return value 1. MSI (s) (BC:80) [12:32:27:544]: Doing action: RemoveExistingProducts Action 12:32:27: RemoveExistingProducts. Removing applications Action start 12:32:27: RemoveExistingProducts. Action ended 12:32:27: RemoveExistingProducts. Return value 1. Action ended 12:32:27: INSTALL. Return value 1. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx. You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail recept...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users