That seems like a rather nebulous requirement. In my experience packages either live side-by-side with older versions or they upgrade older packages, not both. I don't think it's going to be easy conditionally doing either using default Windows Installer behaviour.
The Upgrade Table allows you to either schedule an upgrade or just set a Property (OnlyDetect="yes"). You could use it only detect older versions, then ask the user the question based on that Property's contents then use the response to choose whether to fire a Custom Action which modifies the ActionProperty column of the Upgrade table so RemoveExistingProducts can do it's thing if the older versions are to be uninstalled (may also need to modify the attributes column to remove the msidbUpgradeAttributesOnlyDetect flag). See http://msdn.microsoft.com/en-us/library/aa371197(VS.85).aspx for RemoveExistingProducts behaviour. You'll need to be very careful with the Component rules if you do choose to go down this route (if it's even possible). Personally I'd do one or the other, both seems like causing more hassle than it's worth. Palbinder Sandher Software Deployment & IT Administrator 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: Michael Osmond [mailto:[email protected]] Sent: 14 September 2010 23:07 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Optional Install or Upgrade Hello all, I have a need where a package will determine if a previous version exists, and then allow the user the option to upgrade the previous version, or to install the new version side by side with the existing, so both are available. My current thought was to use the Upgrade table to detect the version, and then modify the ActionProperty and remove a detected product depending on the user input. Also, I will need to deal with the path issues for files and registry (I have done side by side installs before). Has anyone got any guidance on doing this (or not doing it at all)? Regards Michael ------------------------------------------------------------------------ ------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

