Installation 从msi Wix安装vcredist x86

Installation 从msi Wix安装vcredist x86,installation,wix,windows-installer,Installation,Wix,Windows Installer,我正在尝试从我的msi安装我的程序vcredit_x86_2008.exe和vcredit_x86_2010.exe的依赖项,然后再尝试安装程序本身。我有下面的代码 <Binary Id="SetupCA" SourceFile="..\..\ext_library\SetupCA\SetupCA\bin\Release\SetupCA.CA.dll"/> <Binary Id="VCREDIST_2008_FILE" SourceFile="..\..\ext_librar

我正在尝试从我的msi安装我的程序vcredit_x86_2008.exevcredit_x86_2010.exe的依赖项,然后再尝试安装程序本身。我有下面的代码

<Binary Id="SetupCA"  SourceFile="..\..\ext_library\SetupCA\SetupCA\bin\Release\SetupCA.CA.dll"/>
<Binary Id="VCREDIST_2008_FILE" SourceFile="..\..\ext_library\vcredist_x86_2008.exe" />
<Binary Id="VCREDIST_2010_FILE" SourceFile="..\..\ext_library\vcredist_x86_2010.exe" />
<CustomAction Id="VCREDIST_2008" BinaryKey="VCREDIST_2008_FILE" ExeCommand="/q:a" Execute="immediate" Return="check" />
<CustomAction Id="VCREDIST_2010" BinaryKey="VCREDIST_2010_FILE" ExeCommand="/q /norestart" Execute="immediate" Return="check" />
<CustomAction Id="WRITEFILETODISK" Execute="immediate" BinaryKey="SetupCA" DllEntry="WriteFileToDisk" />
<CustomAction Id="ResidueRemove" Execute="immediate" BinaryKey="SetupCA" DllEntry="DeleteResidue" />
<InstallExecuteSequence>
  <Custom Action="WRITEFILETODISK" Before="InstallFinalize">NOT Installed</Custom>
  <Custom Action="ResidueRemove" After="InstallFinalize">Installed</Custom>
  <Custom Action="VCREDIST_2008" Before="CostInitialize">NOT Installed</Custom>
  <Custom Action="VCREDIST_2010" Before="CostInitialize">NOT Installed</Custom>
</InstallExecuteSequence>

这不是从msi安装另一个exe的正确方法吗?如果我错了,请更正。

EXE是一个自解压MSI。Windows Installer具有防止两个并发MSI事务的互斥锁,因此不可能让一个MSI调用另一个MSI的安装。您需要研究如何使用WiX的Burn引导程序来序列化两个msi的安装。

当前安装程序应安装为
msiexec/i file.msi PROPERTY=“VALUE”
。我将获取该属性的值并将其写入某个配置文件中。如果我要使用Wix Burn增压器,我该怎么做呢。有什么想法吗?burn的一个组件是“引导程序应用程序”。有一个“标准引导程序应用程序”,或者您可以使用本机代码或托管代码编写自定义应用程序。顺便说一句,这是一个新问题,应该像这样发布。谢谢。首先,我要试试燃烧助推器。稍后再谈这个问题。
Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: VCREDIST_2008, location: C:\Windows\Installer\MSIA422.tmp, command: /q:a 
    MSI (s) (D8:30) [10:14:20:867]: Note: 1: 2205 2:  3: Error 
    MSI (s) (D8:30) [10:14:20:867]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 
    MSI (s) (D8:30) [10:14:20:867]: Product: LogPointAgent -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: VCREDIST_2008, location: C:\Windows\Installer\MSIA422.tmp, command: /q:a