Are you sure you have RemoveExistingProducts scheduled? Sounds to me like when you install the later version, it's incrementing the Component Reference count which is why uninstalling the old one works fine (all it does is decrement the Component Reference counts) & would explain why the directory isn't being removed when the new version is uninstalled because it didn't create it in the first place. RemoveExistingProducts should be scheduled if you want to do a Major Upgrade which is what it sounds like you want to do (as in uninstall the old version before installing the new one or upgrade the old version to the new one) -> http://msdn.microsoft.com/en-us/library/windows/desktop/aa371197.aspx
Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Ian Brooke [mailto:ianbro...@hotmail.com] Sent: 08 May 2012 14:26 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Add/remove Programs Thanks for your reply Neil, I'm not aware of a "Package Code" in Installshield, however the Product Code has changed and the Version number has changed (from 7.0.2 to 7.0.4) and the Upgrade Code has remained the same so I have no idea what's going on. Sounds as though it's an Installshield problem though rather than one with the Windows Installer. Looks like I'm going to have to spend the time to switch it to WiX, not something I wanted to do at this moment in time :( Ian -----Original Message----- From: Neil Sleightholm Sent: Tuesday, May 08, 2012 12:26 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Add/remove Programs That is supported by Windows Installer and shouldn't be happening if your MSI is setup correctly even in Installshield. For a major upgrade you need to change the Package code, Product code and version and leave the Upgrade code the same. WiX 3.5 makes this easy to setup http://wix.sourceforge.net/manual-wix3/major_upgrade.htm, http://www.joyofsetup.com/2010/01/16/major-upgrades-now-easier-than-ever/ Here is the setup for v3 http://neilsleightholm.blogspot.co.uk/2009/01/wix-script-for-major-upgrades.html Neil -----Original Message----- From: Ian Brooke [mailto:ianbro...@hotmail.com] Sent: 08 May 2012 01:38 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Add/remove Programs I hope you don't mind this slightly unusual question! We have a product currently installed by Installshield (Express 2012) which we are considering switching to WiX but don't really want to spend the time doing that if it doesn't solve our problem. What I really need to determine is if this is standard Windows Installer behaviour or, if I can stop it happening by switching to WiX. Here's the problem - We are creating an msi embedded exe which is intended to either upgrade an existing version if one exists on the target computer otherwise do a full install. The upgrade has a new Product Code but the existing Upgrade Code. Both the upgrade and install appear to work fine, except.... Problem 1. After an upgrade if we check Add/Remove Programs there are 2 entries, one for the old version and one for the new one. Problem 2. After an upgrade I can use the old version uninstall entry and that works Ok and leaves the new version Ok. However, if I then uninstall the new version it leaves an empty application folder (which was originally created by the old version install) under Program Files(x86). I'd really like to stop both of these happening. Thanks for any advise. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users