【问题标题】:Remove existing feature from the installed WIX setup从已安装的 WIX 设置中删除现有功能
【发布时间】:2014-12-24 12:33:25
【问题描述】:

我有我的 .Net 应用程序的 Wix 设置。我已将它安装在我的系统上。 我想使用 UpgradeVesion 创建一个 WIX 设置,以从已安装的设置中删除一些功能并添加新功能。 我使用以下代码:-

  <Product Id="*"
   Name="MyProduct"
   Language="10313"
   Version="3.0.0.0"
   Manufacturer="My_Company"
   UpgradeCode="6ba277d97-41de-4371-a236-b757b7840f7b">
<Package InstallerVersion="200" Compressed="yes" />

<Upgrade Id="6ba28d97-49de-4371-a236-b757b7840f7b">
  <UpgradeVersion Minimum="0.0.0.0"
                  IncludeMinimum="yes"
                  OnlyDetect="no"
                  Maximum="3.0.0.0"
                  IncludeMaximum="yes"
                  Property="PREVIOUSFOUND" RemoveFeatures="[ProductFeature1]"/>
</Upgrade>
<InstallExecuteSequence>
  <RemoveExistingProducts Before="InstallInitialize"/>
</InstallExecuteSequence>

<MediaTemplate />
<UIRef Id="WixUI_InstallDir" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/>
    <Feature Id="ProductFeature" Title="TestApp" Level="1">
        <ComponentGroupRef Id="ProductComponents" />

    </Feature>
<Feature Id="ProductFeature1" Title="TestApp" Level="1">
  <ComponentGroupRef Id="ProductComponent1"/>
</Feature>
</Product>

但我无法删除 ProductFeature1。

如何从已安装的设置中删除现有功能。

【问题讨论】:

    标签: wix upgrade windows-installer wix3.8


    【解决方案1】:

    您需要为 wix 创建主要升级以实现相同的效果.. 请点击以下链接:- enter link description here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-14
      • 1970-01-01
      • 2019-04-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多