如何为 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 运行 成功。
示例结构--
- setup.exe
- samplefile.rsp
- files(这是一个包含setup.exe需要的文件的文件夹)
- Data1.cab
- Clientruntime.msi
- 另一个文件
这是我到目前为止得到的。
<ExePackage Id="Ingres_Client"
Compressed="yes"
PerMachine="yes"
Permanent="yes"
Vital="yes"
SourceFile="setup.exe"
InstallCommand="/r sampleCR.rsp"
InstallCondition="(VersionNT > v5.1 OR VersionNT64 > 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 存档。
我是 Wix burn bootstrapper 的新手,所以请原谅我的 ignorance.I 有一个要求,我需要使用 burn bootstrapper 安装先决条件。 先决条件是 setup.exe(第三方),它依赖于文件和文件夹(包含几个文件)。所有这些都需要存在于 setup.exe 的根目录中,以便 setup.exe 运行 成功。
示例结构--
- setup.exe
- samplefile.rsp
- files(这是一个包含setup.exe需要的文件的文件夹)
- Data1.cab
- Clientruntime.msi
- 另一个文件
这是我到目前为止得到的。
<ExePackage Id="Ingres_Client"
Compressed="yes"
PerMachine="yes"
Permanent="yes"
Vital="yes"
SourceFile="setup.exe"
InstallCommand="/r sampleCR.rsp"
InstallCondition="(VersionNT > v5.1 OR VersionNT64 > 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 存档。