Wix Heat 输出没有像我想要的那样引用目录 [英] Wix Heat output not referencing directory like I want

查看:25
本文介绍了Wix Heat 输出没有像我想要的那样引用目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是基本设置.我有一个现有的 WIX 项目,它将一堆单独的片段构建到一个更大的 MSI 中.我正在尝试更改项目以允许您选择要安装的单个部分.我遇到的程序是,当我在较小的目录上运行 heat 以创建单个组件时,源路径不正确.我会举一个例子,希望这会更有意义.

So here's the basic setup. I have an existing WIX project that builds a bunch of individual fragments in to a larger MSI. I'm trying to change the project around to allow you to select individual pieces to install. The program I've run in to is that when I run heat on the smaller directories to create the individual components, the Source path isn't correct. I'll give an example as hopefully that will make more sense.

所以我有这样的基本文件夹结构:

So I have basic folder structure like this:

C:\ProjDir\Foo\Bar1
C:\ProjDir\Foo\Bar2

C:\ProjDir\Foo\Bar1
C:\ProjDir\Foo\Bar2

我曾经使用一个命令来简单地获取 C:\Foo (Heat.exe dir Foo -dr FOO_DIR_REF -out File.wxs),现在我已经将其更改为获取每个单独的 Bar 文件夹 (Heat.exe dirFoo\Bar1 -dr BAR1_DIR_REF -out File1.wxs)和(Heat.exe dir Foo\Bar2 -dr BAR2_DIR_REF -out File2.wxs).我遇到的问题是收获的输出看起来像这样:

I used to a command to simply harvest C:\Foo (Heat.exe dir Foo -dr FOO_DIR_REF -out File.wxs), and now I've changed it to to harvest each individual Bar folder (Heat.exe dir Foo\Bar1 -dr BAR1_DIR_REF -out File1.wxs) and (Heat.exe dir Foo\Bar2 -dr BAR2_DIR_REF -out File2.wxs). The problem I'm having is that the output of the harvest looks like this:

<Component Id="cmpblablabla" Guid="{stuff-here}">
    <File Id="filblabla" KeyPath="yes" Source="SourceDir\Bar1\file.here" />
</Component>

当尝试构建 msi 时,它会抱怨,因为它找不到 SourceDir\Bar1.基本上我需要的是一种使它看起来像这样的方法:

And when trying to build the msi it complains because it can't find SourceDir\Bar1. Basically what I need is a way to make it look something like this:

<Component Id="cmpblablabla" Guid="{stuff-here}">
    <File Id="filblabla" KeyPath="yes" Source="SourceDir\Foo\Bar1\file.here" />
</Component>

这似乎是一个非常简单的问题,我相信这很容易完成,但我所做的所有搜索都没有找到任何有用的东西.

This seems like a very simple problem, that I'm sure is easily done, but all the searching I've done has not come up with anything useful.

推荐答案

请注意,如果您将文件添加到搜索中,light 会为您的文件搜索其他 SourceDir带有 -b

Note that light will search additional SourceDir's for your file if you add them to the search path with -b

例如

light.exe -b Foo ...

这篇关于Wix Heat 输出没有像我想要的那样引用目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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