Zip*_*per 13 windows-installer wix
所以这是基本设置.我有一个现有的WIX项目,可以将更多的单个片段构建到更大的MSI中.我正在尝试更改项目,以允许您选择要安装的单个部分.我遇到的程序是,当我在较小的目录上运行加热来创建单个组件时,源路径不正确.我希望能有一个更有意义的例子.
所以我有这样的基本文件夹结构:
C:\ ProjDir\Foo\Bar1
C:\ ProjDir\Foo\Bar2
我曾经用命令简单地收获C:\ Foo(Heat.exe dir Foo -dr FOO_DIR_REF -out File.wxs),现在我已将其更改为收获每个单独的Bar文件夹(Heat.exe dir Foo\Bar1) -dr BAR1_DIR_REF -out File1.wxs)和(Heat.exe dir Foo\Bar2 -dr BAR2_DIR_REF -out File2.wxs).我遇到的问题是收获的输出如下:
<Component Id="cmpblablabla" Guid="{stuff-here}">
<File Id="filblabla" KeyPath="yes" Source="SourceDir\Bar1\file.here" />
</Component>
Run Code Online (Sandbox Code Playgroud)
当尝试构建msi时,它会抱怨,因为它无法找到SourceDir\Bar1.基本上我需要的是一种让它看起来像这样的方法:
<Component Id="cmpblablabla" Guid="{stuff-here}">
<File Id="filblabla" KeyPath="yes" Source="SourceDir\Foo\Bar1\file.here" />
</Component>
Run Code Online (Sandbox Code Playgroud)
这似乎是一个非常简单的问题,我确信很容易完成,但我所做的所有搜索都没有提出任何有用的东西.
sas*_*ont 14
请注意,如果您将文件添加到搜索路径,light
则会搜索其他SourceDir
文件-b
例如
light.exe -b Foo ...
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
7189 次 |
最近记录: |