生成WIX创作文件以在单个组件下包含多个文件 [英] Generate WIX authoring files to contain multiple files under a single component
问题描述
我们正在使用heat可执行文件来生成创作文件,其中为每个文件创建一个唯一的组件.有没有一种方法可以在单个组件下包含多个文件.
We are using heat executable to generate an authoring file, where a unique component is created for each file. Is there a way to include multiple files under a single component.
预期结果:
<component Id="samplecomponent" Directory="INSTALLFOLDER" Guid="*">
<File Id="file1.txt" Source="$(var.Sourcedir)\file1.xml" />
<File Id="file2.txt" Source="$(var.Sourcedir)\file2.xml" />
<File Id="file3.txt" Source="$(var.Sourcedir)\file3.xml" />
</Component>
推荐答案
石蜡3.131版本可帮助您为每个组件创建多个文件,但是请阅读下面的免责声明(以及上面注释中的链接).
Paraffin 3.131 version works to help you create multiple files per component, but please read the disclaimers below (and the links in the comments above).
应该注意的是,出于充分的理由,此功能可能已从Paraffin中弃用(据我所知,它从未在WiX自己的heat.exe
中见过),因为它倾向于进行较小的升级和修补,几乎无法使用.这与MSI的整体复杂性有关-特别是在升级方面. Paraffin可能会因为其他原因而弃用该功能,例如,维护起来太复杂了.我不知道.
It should be noted that this feature has probably been deprecated from Paraffin for good reason (and never seen in WiX's own heat.exe
as far as I know), since it tends to make minor upgrades and patching almost impossible to use. This has to do with the overall complexity of MSI - particularly with regards to upgrades. There could also be other reasons for Paraffin deprecating the feature, for example that it is too complex to maintain. I don't know.
我总是更喜欢每个组件一个文件-它避免了各种问题(对于patching
,upgrades
,self-repair
,etc...
).以下是一些技术详细信息:在wix中更改我的组件GUID吗?
I always prefer one file per component - it avoids all kinds of problems (for patching
, upgrades
, self-repair
, etc...
). Here are some technical details: Change my component GUID in wix?
但是, Santhosh的软件包有很大的问题,即使应用了许多加快速度的技巧(limit costing
,use admin image
等...-参见链接).在这种情况下,我的首选替代方法是将软件包拆分为多个MSI文件,并按顺序使用引导程序进行安装-例如使用WiX的Burn bootstrap.当然,这并不总是可以接受的.有时单个MSI至关重要.
However, Santhosh has problems with a package that is so large that its installation performance is too slow, even after having applied a number of tricks to speed it up (limit costing
, use admin image
, etc... - see link). My preferred alternative in such cases is to split the package into several MSI files and install them with a bootstrapper in sequence - for example using WiX's Burn bootstrapper. This is not always acceptable of course. Sometimes a single MSI is crucial.
这篇关于生成WIX创作文件以在单个组件下包含多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!