有没有办法创建与完整安装新版本相同的补丁?

发布于 2024-09-04 10:00:21 字数 384 浏览 8 评论 0原文

我正在尝试使用本教程中的方法创建补丁。我遇到的一个问题是我无法在以前的补丁之上安装新补丁。

我可以完整安装版本A,然后修补到版本B。之后我无法修补到版本C。 我可以完整安装版本 B,然后修补到版本 C。

目前,我们只是每次进行主要更新的完整安装,这工作正常,但由于我们(内部)更新的频率,文件大小和更新时间正在成为一种负担因此,我们希望减少更新时间(下载和安装),特别是当大多数文件没有更改时。

编辑:另一个要求是在任何给定时间都可以完成完整安装而不是补丁。我想出的设置静态产品代码并在顶部进行完整安装(无需手动卸载)的解决方案不起作用。

I'm trying to create patches using the method from this tutorial. An issue I'm running into is that I can't install a new patch on top of a previous patch.

I can full install Version A,then patch to Version B. After that I can't patch to Version C.
I can full install Version B, then patch to Version C.

Currently we just do full installs with major updates each time which is working fine, but because of the frequency of our (internal) updates the file size and update time is becoming a burden so we're looking to reduce the update time (both downloading and installing) especially when most of the files don't change.

Edit: Another requirement is that at any given time a full install can be done instead of a patch. The solution I came up with setting a static product code made full installs on top (without manually uninstalling) doesn't work.

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

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

发布评论

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

评论(2

迷雾森÷林ヴ 2024-09-11 10:00:21

如果您不进行主要升级,但要更改版本,则您正在进行次要升级。为了能够在现有安装的先前版本上安装下一个版本的 .msi 文件,您必须将 REINSTALL 设置为某处已修改功能的列表(如果您懒的话,则设置为 ALL并愿意忍受 Windows Installer 做额外的工作)。通常设置由引导程序处理的REINSTALL,但如果未安装以前的版本(条件未安装)。

If you're not doing a major upgrade, but you are changing versions, you're doing a minor upgrade. To be able to install the next version .msi file over an existing installed previous version, you're going to have to set REINSTALL to a list of modified features somewhere (or to ALL if you're lazy and willing to put up with Windows Installer doing extra work). Often setting REINSTALL handled by the bootstrap, but it is possible to set it in the .msi and reset it to empty ({})when the previous versions are not installed (condition Not Installed).

逆蝶 2024-09-11 10:00:21

看起来问题是我之前对所有升级进行了重大升级,但这不支持修补。更改为静态产品代码而不是自动生成修复了该问题。

编辑:
看起来它解决了安装 A 补丁 B 补丁 C 不起作用的第一个问题,但现在尝试在上面完全安装 D 不起作用。

Looks like the issue was that I was previously making all upgrades major upgrades, but that's not supported with patching. Changing to a static product code rather than auto-generate fixed it.

Edit:
Looks like it solved the first problem of Install A Patch B Patch C not working, but now trying to do a full install of D on top doesn't work.

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