Hi all, I've got a product that has historically been 32-bit only but has since gained a 64-bit installer. I still have to distribute both 32- and 64-bit versions (if only to support 32-bit systems as well as 64). I don't want to allow both a 32-bit and a 64-bit version to be installed side-by-side, since the 64-bit package provides the 32-bit libraries. In particular, I want to enforce this at upgrade/installation time, so a new 64-bit package should upgrade an old 32-bit package; it also seems natural that a new 32-bit package would upgrade an old 64-bit package (even though I can't think of a reason someone would want to do that). To effect this behavior, we have different UpgradeCodes for the 32- and 64-bit versions, and within the Product element I have Upgrade elements for both the different UpgradeCodes. This works great for the 32->64-bit upgrade, but the behavior in the 64->32-bit upgrade is harder for me to explain.
In this case, the installer GUI does not present me with the major upgrade logic (that is, "Uninstall previous versions") that I see in the other upgrade scenarios on my checklist. If I look at the verbose msiexec log for the upgrade, though, the RemoveExistingProducts action does seem to get run, and the old package is unregistered (it no longer shows up in the "Programs and Features" control panel item). Yet, the files in Program Files are not removed! We have RemoveExistingFiles sequenced as After=InstallValidate, which by my reading means that the old version should be completely uninstalled before anything from the new version gets installed. I'm really confused by this behavior, and don't know where to look further. For completeness, I'll mention that I'm using WiX 3.5, the RemoveExistingProducts element is conditional on both (Not Installed) and one (or more) of the upgrades having been detected, and we do not set a 'secure' attribute on the property element used to detect the upgrade case (as is recommended at, e.g., http://stackoverflow.com/questions/114165/how-to-implement-wix-installer-upgrade ). Thanks, Ben Kaduk ------------------------------------------------------------------------------ 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