2015-02-11 28 views
1
<InstallExecuteSequence> 
    <RemoveExistingProducts Before='InstallInitialize' /> 
</InstallExecuteSequence> 

我以迫使我的應用程序卸載以前版本按this question加入這個XML,但我得到了下面的錯誤。重複的符號錯誤添加InstallExecuteSequence「RemoveExistingProducts」時維克斯

是否有某處可能已聲明不在我的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 

回答

4

您的wxs中可能有一個MajorUpgrade元素。這個元素有一個屬性作爲語法糖來編寫多行,包括在哪裏調度RemoveExistingProducts。

+0

你是對的。 – benstpierre 2015-02-11 21:45:20

+0

我在我的MajorUpgrade元素中有一個值爲afterInstallFinalize的Schedule屬性。仍然沒有運氣。 – Ven 2017-11-20 13:02:25