Uninstalling another product during install using WiX

给你一囗甜甜゛ 提交于 2019-12-07 17:04:17

问题


I want to be able to remove another application as part of the install of my MSI file. Currently, I have the following in WiX:

<Upgrade Id="{586A589B-D6D5-48D3-9B6D-571EF230ED6A}">
    <UpgradeVersion Minimum="$(var.ProductVersion)"
                    Property="NEWERPRODUCTFOUND"
                    OnlyDetect="yes"
                    IncludeMinimum="yes" />
    <UpgradeVersion Minimum="1.0.0"
                    Maximum="$(var.ProductVersion)"
                    Property="PREVIOUSVERSIONSINSTALLED"
                    IncludeMinimum="yes" />
</Upgrade>

<Upgrade Id="{71F6B5D5-8CB9-48C9-B359-4BA22D5ADAF3}">
    <UpgradeVersion Minimum="1.0.0.0"
                    Maximum="3.5.3"
                    Property="OLDAPPFOUND"
                    IncludeMinimum="yes"
                    IncludeMaximum="yes"/>
</Upgrade>

The first upgrade section is what upgrades my current MSI file (and this works). The second part is what I am trying to use to remove the other application (and this doesn't). Both the current MSI file and the one I am trying to remove both install in the per-machine context, so I cannot understand why this doesn't work. How can this problem be fixed?


回答1:


A verbose log file should indicate what products are being detected by the Upgrade elements. From there it should be possible to track down the bug in your authoring.



来源:https://stackoverflow.com/questions/6388703/uninstalling-another-product-during-install-using-wix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!