我是Wix Burn Bootstrapper的新手,请原谅我的无知。我有一个要求,我需要使用Burn Bootstrapper安装必备组件。
前提条件是setup.exe(第三方),它依赖于文件和文件夹(包含几个文件)。所有这些都必须存在于setup.exe的根目录中,才能使setup.exe成功运行。
示例结构-
这是我到目前为止所得到的。
<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包含必要的文件,但是我不知道如何添加一个文件夹('files'文件夹),因为这是setup.exe的要求
任何帮助表示赞赏。
最佳答案
使用子Name
元素的Payload
属性。
<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 - 如何为Wix Burn Bootstrapper exepackage添加从属文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29610793/