升级Wix软件包时仅替换DLL

发布于 2025-02-13 17:33:04 字数 977 浏览 0 评论 0原文

我需要在不卸载应用程序的情况下使用新版本升级现有应用程序。意思是,我只需要替换DLL和应用程序文件,但不想卸载整个应用程序,只想更改版本。

我曾尝试过下面的剪切,

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

将ProduciD =“ GUID” - CONDUNT,PACKAGGEDID =“ GUID” -

 <?define UpgradeCode="7074527f-f87a-49be-8a51-952d34e1ed7f"?>
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowDowngrades="no" AllowSameVersionUpgrades="yes" />
<MediaTemplate EmbedCab="yes" />

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

请让我知道,我们如何在不卸载整个现有文件的情况下实现更新文件。

在以下错误: 该产品的另一个版本已经安装。

I need to upgrade the existing application with new version without uninstalling the application. Meaning, i needs to only replace dll and application files, but do not want to uninstall whole application, only wants to change the version.

I had tried below snipped,

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

Kept productId = "Guid" - constant, PackagedId = "GUID"-constant

 <?define UpgradeCode="7074527f-f87a-49be-8a51-952d34e1ed7f"?>
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowDowngrades="no" AllowSameVersionUpgrades="yes" />
<MediaTemplate EmbedCab="yes" />

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

Please let me know, how can we achieve the updating files without uninstalling whole existing files.

Getting below error:
Another version of this product is already installed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

贱人配狗天长地久 2025-02-20 17:33:04

恒定的ProductCode表示您需要“较小的升级”,因此升级和主要启动元素没有发挥作用。使用/f进行较小的升级。

也就是说,晚期的重大升级可能也会为您提供想要的东西。

Constant ProductCode means you want a "minor upgrade" so the Upgrade and MajorUprade elements are not in play. Use /f for minor upgrade.

That said, a late major upgrade would probably give you what you want as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文