在升级场景中,Windows安装程序效果中的组件中的ComponentID会更改吗?
有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有关更多详细信息,请参阅此旧答案:何时更改组件 GUID?
组件 GUID 应保持稳定版本之间,除非您将组件的密钥文件移动到磁盘上的新绝对位置(您在源层次结构中相对于其他文件移动文件 - 磁盘上的目标目的地可能会有所不同,具体取决于您作为基本文件夹安装的位置 -安装目录)。在这种情况下,它被视为一个新文件,并且应该被赋予一个新的标识 - 这意味着一个新的组件 GUID。
组件 GUID 标识特定位置处的密钥文件,如果文件移动到磁盘上的其他位置,则 GUID 不会“跟随文件”。
如果文件在磁盘上保持稳定,则组件 ID 会执行引用计数和跨版本识别同一文件的工作。
链接:
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: