Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Installation 有没有一种方法,使安装程序可以安装多个微星从互联网下载?_Installation_Wix_Bootstrapper - Fatal编程技术网

Installation 有没有一种方法,使安装程序可以安装多个微星从互联网下载?

Installation 有没有一种方法,使安装程序可以安装多个微星从互联网下载?,installation,wix,bootstrapper,Installation,Wix,Bootstrapper,就像WiX安装程序一样,我想分发一个小型setup.exe,安装时,setup.exe可以从指定的服务器下载所需的MSI。 如果有人知道怎么做,代码示例更好 <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'> <Payload Name='BootstrapperCore.config' SourceFile='WixBA.BootstrapperCore.config' />

就像WiX安装程序一样,我想分发一个小型setup.exe,安装时,setup.exe可以从指定的服务器下载所需的MSI。 如果有人知道怎么做,代码示例更好

<BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
  <Payload Name='BootstrapperCore.config' SourceFile='WixBA.BootstrapperCore.config' />

  <Payload SourceFile='WixBA.dll' />
  <Payload SourceFile='License.htm' />
</BootstrapperApplicationRef>

<Variable Name='InstallFolder' Type='string' Value='[ProgramFilesFolder]Test' />
    <Chain>
  <MsiPackage Id='sevenz' Vital='yes' Name='data\7z.msi' SourceFile='data\7z.msi' >
    <MsiProperty Name='INSTALLFOLDER' Value='[InstallFolder]' />
  </MsiPackage>
    </Chain>
</Bundle>
可以成功编译以下代码,但不会显示WixBA UI

<?xml version="1.0" encoding="UTF-8"?>
<BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
  <Payload Name='BootstrapperCore.config' SourceFile='WixBA.BootstrapperCore.config' />

  <Payload SourceFile='WixBA.dll' />
  <Payload SourceFile='License.htm' />
</BootstrapperApplicationRef>

<Variable Name='InstallFolder' Type='string' Value='[ProgramFilesFolder]Test' />
    <Chain>
  <MsiPackage Id='sevenz' Vital='yes' Name='data\7z.msi' SourceFile='data\7z.msi' >
    <MsiProperty Name='INSTALLFOLDER' Value='[InstallFolder]' />
  </MsiPackage>
    </Chain>
</Bundle>

<BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
  <Payload Name='BootstrapperCore.config' SourceFile='WixBA.BootstrapperCore.config' />

  <Payload SourceFile='WixBA.dll' />
  <Payload SourceFile='License.htm' />
</BootstrapperApplicationRef>

<Variable Name='InstallFolder' Type='string' Value='[ProgramFilesFolder]Test' />
    <Chain>
  <MsiPackage Id='sevenz' Vital='yes' Name='data\7z.msi' SourceFile='data\7z.msi' >
    <MsiProperty Name='INSTALLFOLDER' Value='[InstallFolder]' />
  </MsiPackage>
    </Chain>
</Bundle>


WiX工具集使用Burn引擎支持此功能。源代码都在src\burn\engine中提供(特别是,您需要查看downloadengine.cpp)。

WiX工具集支持使用burn引擎进行此操作。源代码都可以在src\burn\engine中找到(特别是,您需要查看downloadengine.cpp)。

谢谢,Rob。我无法成功编译代码,似乎build.cmd文件丢失了。你能给我一个简单的样品吗?我试图使用WixBA.dll来显示UI,它可以被成功编译,但是当我运行exe时,什么也不会显示。我附上了我的测试代码。谢谢,罗伯。我无法成功编译代码,似乎build.cmd文件丢失了。你能给我一个简单的样品吗?我试图使用WixBA.dll来显示UI,它可以被成功编译,但是当我运行exe时,什么也不会显示。我附上了我的测试代码。
<BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
  <Payload Name='BootstrapperCore.config' SourceFile='WixBA.BootstrapperCore.config' />

  <Payload SourceFile='WixBA.dll' />
  <Payload SourceFile='License.htm' />
</BootstrapperApplicationRef>

<Variable Name='InstallFolder' Type='string' Value='[ProgramFilesFolder]Test' />
    <Chain>
  <MsiPackage Id='sevenz' Vital='yes' Name='data\7z.msi' SourceFile='data\7z.msi' >
    <MsiProperty Name='INSTALLFOLDER' Value='[InstallFolder]' />
  </MsiPackage>
    </Chain>
</Bundle>