本文介绍了如何将整个目录或项目输出添加到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,动物脂非常有限.石蜡和锦葵提供其他功能.对于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.

在我的情况下,我使用了锦葵属植物来源并对其进行了一些修改,因为石蜡需要使用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.

您可以使用锦葵

或Paraffin工具生成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包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 05:45