遵循 http://blogs.msdn.com/b/astebner/archive/2008/10/19/9006538.aspx 的建议为了在 WiX 升级期间保留配置文件,我在 InstallExecuteSequence 中添加了以下行:
<RemoveExistingProducts After="InstallFiles"></RemoveExistingProducts>
编译 WiX 解决方案时弹出以下错误:
The InstallExecuteSequence table contains an action 'RemoveExistingProducts' that is declared in two different locations. Please remove one of the actions or set the Overridable='yes' attribute on one of their elements.
为什么会出现这种情况?以及如何解决?
最佳答案
你应该尝试删除这一行:
<RemoveExistingProducts After="InstallFiles"></RemoveExistingProducts>
并将 Schedule="afterInstallExecute" 添加到 MajorUpgrade Element像这样:
<MajorUpgrade Schedule="afterInstallExecute"
DowngradeErrorMessage="Newer version installed. Exiting." />
关于.net - InstallExecuteSequence 表包含在两个不同位置声明的操作 'RemoveExistingProducts',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25485061/