如何将整个目录或项目输出添加到 WiX 包 [英] How to add a whole directory or project output to WiX package

查看:34
本文介绍了如何将整个目录或项目输出添加到 WiX 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们决定从 VS 集成设置切换到 WiX.

We decided to switch from VS integrated setup to WiX.

但是,我们目前所做的是使用项目输出文件作为设置项目的输入.这让我们可以轻松地将应用程序文件添加到目录(用于图像、示例和其他资源......),并且这些文件会在我们构建时自动添加到设置中.

However, what we currently do is use projects output files as the input for the setup project. This lets us easily add Application Files to a directory (for images, samples, and other resources...) and those files are automatically added to the setup when we build.

我在 WiX 中找不到任何类似的功能.WiX 似乎对每个目录和文件都需要一个目录条目和一个文件条目.这将要求我们在每次添加文件时更改 WiX 源,在我看来,这是令人望而却步的,因为我们有这么多的文件.

I could not find any similar feature in WiX. WiX seems to require one Directory entry and one File entry for each and every directory and file. This would require us to change the WiX source everytime a file is added which, to my eyes, is prohibitive since we have so many of them.

是否有任何集成方式可以使用 WiX 执行此操作,还是我必须编写自己的任务来在调用蜡烛之前创建 WiX 源?

Is there any integrated way of doing that with WiX or do I have to write my own task that will create a WiX source before calling candle?

推荐答案

对于 WiX 2.0,tallow 非常有限;石蜡和锦葵提供额外的功能.对于 WiX 3.0,热量提供了与动物脂相同的功能,但要好一些.

For WiX 2.0, tallow is very limited; paraffin and mallow offer additional functionality. For WiX 3.0, heat offers the same functionnality as tallow, a little bit better.

在我的情况下,我使用了 mallow 源并进行了一些修改并使用它,因为石蜡需要 3.5 版本的 .Net.

In my case I've used mallow source and modified a bit and used it, because paraffin needs 3.5 version of .Net.

您可以使用锦葵

或石蜡工具生成 WiX 片段:开始使用,WiX 的痛苦,更好的牛脂, 石蜡,下载,WiX 3.0 的石蜡

or Paraffin tool to generate WiX fragments: Getting started, The pain of WiX, A better tallow, Paraffin, Download, Paraffin for WiX 3.0

这篇关于如何将整个目录或项目输出添加到 WiX 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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