升级Wix软件包时仅替换DLL
我需要在不卸载应用程序的情况下使用新版本升级现有应用程序。意思是,我只需要替换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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
恒定的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.