Change my component GUID in wix?

前端 未结 3 1068
清歌不尽
清歌不尽 2020-11-22 03:50

When should I change or not change my component GUID in WIX? The Microsoft SDK information is confusing.

Glytzhkof edit: To clarify

3条回答
  •  鱼传尺愫
    2020-11-22 04:45

    You never change the Component/@Guid. You also never change the set of Resources (File, RegistryKey, Shortcut, TypeLib, etc.) in the Component. When you have a new Resource, you must create a new Component with a new @Guid. The really tricky part is that new Component can have no overlap (think file path, or registry key path, or typelib, etc.) with the old Component.

    These are basically the Component Rules, check out: http://robmensching.com/blog/posts/2003/10/18/Component-Rules-101.

提交回复
热议问题