【问题标题】:Duplicate symbol error when adding InstallExecuteSequence "RemoveExistingProducts" to WiX将 InstallExecuteSequence“RemoveExistingProducts”添加到 WiX 时出现重复符号错误
【发布时间】:2015-04-12 07:27:48
【问题描述】:
<InstallExecuteSequence>
    <RemoveExistingProducts Before='InstallInitialize' />
</InstallExecuteSequence>

我添加此 XML 是为了强制我的应用程序按照 this question 卸载以前的版本,但我收到以下错误。

我的 product.wxs 文件中有没有可以声明的地方?

Error    34    Duplicate symbol 'WixAction:InstallExecuteSequence/RemoveExistingProducts' found. This typically means that an Id is duplicated. Check to make sure all your identifiers of a given type (File, Component, Feature) are unique.    \\psf\Home\Documents\eThor\Connector\WixInstaller\Product.wxs    6    1    WixInstaller

【问题讨论】:

    标签: wix windows-installer


    【解决方案1】:

    您的 wxs 中可能有一个 MajorUpgrade 元素。此元素有一个属性,该属性用作创作多行的语法糖,包括在何处安排 RemoveExistingProducts。

    【讨论】:

    • 我的 MajorUpgrade 元素中有一个值为 afterInstallFinalize 的 Schedule 属性。还是没有运气。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-07-21
    • 2015-01-09
    • 2015-07-03
    • 1970-01-01
    • 2018-05-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多