生成 ComponentRefs 的 ComponentGroups
因此,我尝试使用热量为项目中的文件生成片段。查看我过去生成的文件以及网络上的各种 WiX 文章,我发现我有目录/组件的片段,然后是使用 ComponentRef 定义 ComponentGroup 的片段。
<Fragment>
<DirectoryRef Id="dir0D9F6D272B6344EBFCF7EED0D14AA801">
<Component Id="cmp0BA12DCC33EB11DEB149261CF6904AAE" Guid="392C95D2-37C1-464E-9979-3E9D2BF57FEE">
<File Id="filB95C5D2C0575B59E63201E24176D55FB" KeyPath="yes" Source="SourceDir\something.dll" />
</Component>
<Component Id="cmp895927B450519C5487FDEC914051E715" Guid="DDC12130-C5D5-4727-95D8-660F7229BBD7">
<File Id="fil8C5E22B3AFE9AA6056E1458BD93E3646" KeyPath="yes" Source="SourceDir\whatever.dll" />
</Component>
</Fragment>
<Fragment>
<ComponentGroup Id="SampleProduct">
<ComponentRef Id="cmp0BA12DCC33EB11DEB149261CF6904AAE" />
<ComponentRef Id="cmp895927B450519C5487FDEC914051E715" />
</ComponentGroup>
</Fragment>
Heat 不是应该生成这个 ComponentGroup 片段吗?或者我是手动完成的但忘记了我这样做了?我在网上找到的各种 Heat 示例似乎表明 Heat 确实生成了这个片段。
我正在做类似的事情: heat dir 。 -gg -g1 -cg WhatThe -out test.wxs
生成 ComponentGroup/Component 的片段 - 找不到 ComponentRef:
<Fragment>
<ComponentGroup Id="WhatThe">
<Component Id="cmp9BDA89E67E0D566068C97D3FA3AEBE70" Directory="dir54021DE1C7E3016732B498A5B2680893" Guid="392C95D2-37C1-464E-9979-3E9D2BF57FEE">
<File Id="filDE3AEB1672B47F4803B1EDAB6016DDD3" KeyPath="yes" Source="SourceDir\something.dll" />
</Component>
<Component Id="cmpA8D6F6019E02CAD0DDA17E2F285D7EC8" Directory="dir54021DE1C7E3016732B498A5B2680893" Guid="DDC12130-C5D5-4727-95D8-660F7229BBD7">
<File Id="filDB325609DF363696B3F5E8D1FC22D4C5" KeyPath="yes" Source="SourceDir\whatever.dll" />
</Component>
</ComponentGroup>
</Fragment>
我缺少什么?除了中期记忆之外?
谢谢
So, I'm trying to use heat to generate fragments for the files in my project. Looking at files I generated in the past, and various WiX articles from around the net, I see that I have Fragments of Directory/Component's and then a Fragment defining a ComponentGroup using ComponentRef's.
<Fragment>
<DirectoryRef Id="dir0D9F6D272B6344EBFCF7EED0D14AA801">
<Component Id="cmp0BA12DCC33EB11DEB149261CF6904AAE" Guid="392C95D2-37C1-464E-9979-3E9D2BF57FEE">
<File Id="filB95C5D2C0575B59E63201E24176D55FB" KeyPath="yes" Source="SourceDir\something.dll" />
</Component>
<Component Id="cmp895927B450519C5487FDEC914051E715" Guid="DDC12130-C5D5-4727-95D8-660F7229BBD7">
<File Id="fil8C5E22B3AFE9AA6056E1458BD93E3646" KeyPath="yes" Source="SourceDir\whatever.dll" />
</Component>
</Fragment>
<Fragment>
<ComponentGroup Id="SampleProduct">
<ComponentRef Id="cmp0BA12DCC33EB11DEB149261CF6904AAE" />
<ComponentRef Id="cmp895927B450519C5487FDEC914051E715" />
</ComponentGroup>
</Fragment>
Isn't Heat supposed to generate this ComponentGroup fragment? Or did I do it manually and forgot I did so? The various Heat examples I find around the web seem to indicate that Heat does generate this fragment.
I'm doing something like: heat dir . -gg -g1 -cg WhatThe -out test.wxs
which produces Fragments of ComponentGroup/Component - nary a ComponentRef to be found:
<Fragment>
<ComponentGroup Id="WhatThe">
<Component Id="cmp9BDA89E67E0D566068C97D3FA3AEBE70" Directory="dir54021DE1C7E3016732B498A5B2680893" Guid="392C95D2-37C1-464E-9979-3E9D2BF57FEE">
<File Id="filDE3AEB1672B47F4803B1EDAB6016DDD3" KeyPath="yes" Source="SourceDir\something.dll" />
</Component>
<Component Id="cmpA8D6F6019E02CAD0DDA17E2F285D7EC8" Directory="dir54021DE1C7E3016732B498A5B2680893" Guid="DDC12130-C5D5-4727-95D8-660F7229BBD7">
<File Id="filDB325609DF363696B3F5E8D1FC22D4C5" KeyPath="yes" Source="SourceDir\whatever.dll" />
</Component>
</ComponentGroup>
</Fragment>
What am I missing? Besides medium-term memory?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
-sfrag
标志添加到 heat.exe 命令行将为您提供所需的输出。Adding the
-sfrag
flag to your heat.exe command line will give you the desired output.