At work we use WiX for building installation packages. We want that installation of product X would result in uninstall of the previous version of that product on that machi
Below worked for me.
Please make sure that the UpgradeCode in Product is matching to Id in Upgrade.