生成 WIX 创作文件以在单个组件下包含多个文件 [英] Generate WIX authoring files to contain multiple files under a single component

查看:16
本文介绍了生成 WIX 创作文件以在单个组件下包含多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用 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>

推荐答案

Paraffin 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.

我总是喜欢每个组件一个文件 - 它避免了各种问题(对于 patchingupgradesself-repair等等...).以下是一些技术细节:在 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 costinguse admin image等... - 见链接).在这种情况下,我首选的替代方法是将包拆分为多个 MSI 文件并使用引导程序按顺序安装它们 - 例如使用 WiX 的 Burn 引导程序.当然,这并不总是可以接受的.有时单个 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆