在升级场景中,Windows安装程序效果中的组件中的ComponentID会更改吗?

发布于 2025-01-18 00:01:22 字数 153 浏览 2 评论 0原文

有1.0.0.0版的component1的product1。有一个product2具有2.0.0.0版的相同组件,其中组件ID(GUID)值已更改。 现在,如果我们从product1到product2进行较小的升级,则该组件将从1.0.0.0更新为2.0.0.0。还是它与GUID值更改相同?

There is Product1 with Component1 of version 1.0.0.0. There is a Product2 with same Component of version 2.0.0.0 of which the Component ID (GUID) value is changed .
Now if we do the minor upgrade from Product1 to Product2 , will the component be updated from 1.0.0.0 to 2.0.0.0 . Or will it remain same as the GUID value is changed?

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

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

发布评论

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

评论(1

如果没结果 2025-01-25 00:01:22

有关更多详细信息,请参阅此旧答案:何时更改组件 GUID?


组件 GUID 应保持稳定版本之间,除非您将组件的密钥文件移动到磁盘上的新绝对位置(您在源层次结构中相对于其他文件移动文件 - 磁盘上的目标目的地可能会有所不同,具体取决于您作为基本文件夹安装的位置 -安装目录)。在这种情况下,它被视为一个新文件,并且应该被赋予一个新的标识 - 这意味着一个新的组件 GUID。

组件 GUID 标识特定位置处的密钥文件,如果文件移动到磁盘上的其他位置,则 GUID 不会“跟随文件”。

如果文件在磁盘上保持稳定,则组件 ID 会执行引用计数和跨版本识别同一文件的工作。


链接:

  • 小升级有很多限制
  • <一个href="https://stackoverflow.com/questions/72260553/wix-setup-when-do-i-need-to-change-the-guid-of-a-component/72263030#72263030">WiX 设置:何时我需要更改组件的 GUID 吗?

See this old answer for more details: When to change component GUIDs?


Component GUIDs should remain stable between releases unless you move the keyfile of the component to a new absolute location on disk (you move the file in your source hierarchy relative to your other files - target destination on disk can vary depending on where you install as base-folder - INSTALLDIR). In that case it is treated as a new file and should be given a new identity - which means a new component GUID.

The component GUID identifies a keyfile at a specific location, the GUID does not "follow the file around" if it moves to a different location on disk.

If the file remains stable on disk, the component ID does the work of reference counting and identifying the same file across releases.


Links:

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