在控制面板的添加/删除部分仍然存在WIX程序



我让我的WIX安装选项,升级,以便它删除以前的dll,但是当我进入控制面板,选择"添加/删除程序"部分,旧版本仍然存在。

如何从"添加/删除"部分删除上一个图标?

回应下面的评论对不起,我仍然不能得到这个工作,以前的版本仍然显示在添加/删除程序部分,当我升级,下面是一些代码

我确实有Id最初为"*",但现在我只是改变产品Id当我做我的下一个构建

<Upgrade Id="$(var.UpgradeCode)">
  <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
  <UpgradeVersion Minimum="1.0.0"
                  IncludeMinimum="yes"
                  OnlyDetect="no"
                  Maximum="$(var.ProductVersion)"
                  IncludeMaximum="no"
                  Property="PREVIOUSVERSIONSINSTALLED" />
</Upgrade>

需要升级的版本号必须相同。如果要执行主要升级,即删除以前的安装,然后安装新版本,则必须更改的属性是产品id

一个"*"导致WIX生成一个新的指南

你想要这样的东西:

<!--Product -->
<Product Id="*" Name="$(var.Product.Name)" Language="$(var.Product.Lang)" Version="$(var.Product.Version)" Manufacturer="$(var.Product.Manufacturer)" UpgradeCode="{Replace me with a constant Upgrade Guid}">
<Package InstallerVersion="$(var.Package.InstallerVersion)" Compressed="yes" Platform="$(var.Platform)" />   

   <!--Condition Messages-->
    <Condition Message="A newer version of $(var.Product.Name) is already installed. Exiting installation.">
      <![CDATA[Installed OR NOT NEWER_VERSION_FOUND]]>
    </Condition>
<!-- Upgrade Table -->
<Upgrade Id="{Replace me with a constant Upgrade Guid}">
  <UpgradeVersion
    Property="OLD_VERSION_FOUND"
    Minimum="0.0.0.0"
    Maximum="$(var.Product.Version)"
    IncludeMinimum="yes"
    IncludeMaximum="no"
    OnlyDetect="no"
    IgnoreRemoveFailure="yes"
    MigrateFeatures="yes"
    Language="1033"  />
  <UpgradeVersion
    Property="NEWER_VERSION_FOUND"
    Minimum="$(var.Product.Version)"
    IncludeMinimum="no"
    OnlyDetect="yes"
    Language="1033"  />
</Upgrade>
<!--Removes the old version and then installs the new version-->
<InstallExecuteSequence>
  <RemoveExistingProducts After="InstallInitialize"></RemoveExistingProducts>
  <InstallExecute After="RemoveExistingProducts"></InstallExecute>
</InstallExecuteSequence>

您还应该注意,您不能在每个用户和每个版本之间的机器安装之间切换。

最新更新