如何为 Wix burn bootstrapper exepackage 添加依赖文件夹

How to add a dependent folder for a Wix burn bootstrapper exepackage

我是 Wix burn bootstrapper 的新手,所以请原谅我的 ignorance.I 有一个要求,我需要使用 burn bootstrapper 安装先决条件。 先决条件是 setup.exe(第三方),它依赖于文件和文件夹(包含几个文件)。所有这些都需要存在于 setup.exe 的根目录中,以便 setup.exe 运行 成功。

示例结构--

  1. setup.exe
  2. samplefile.rsp
  3. files(这是一个包含setup.exe需要的文件的文件夹)
    1. Data1.cab
    2. Clientruntime.msi
  4. 另一个文件

这是我到目前为止得到的。

    <ExePackage Id="Ingres_Client"
                Compressed="yes"
                PerMachine="yes"
                Permanent="yes"
                Vital="yes"
                SourceFile="setup.exe"
                InstallCommand="/r sampleCR.rsp"
                InstallCondition="(VersionNT &gt; v5.1 OR VersionNT64 &gt; v5.1)"
                DetectCondition="Ingres">

    </ExePackage>

我尝试使用 PayLoad.But 包含必要的文件 我不知道如何添加文件夹('files' 文件夹),因为它是 setup.exe

感谢任何帮助。

使用子 Payload 元素的 Name 属性。

<ExePackage SourceFile="setup.exe">
    <Payload SourceFile="samplefile.rsp" />
    <Payload SourceFile="anotherfile" />
    <Payload Name="files\data1.cab" SourceFile="files\data1.cab" />
    <Payload Name="files\clientruntime.msi" SourceFile="files\clientruntime.msi" />
</ExePackage>

如果有很多很多文件,最好只制作一个自解压 zip 存档。