Wix 使用可执行文件安装驱动程序
我正在编写一个WiX安装程序,它需要安装一个驱动程序作为先决条件。需要运行一个可执行文件,以便在PC上安装驱动程序。我不想在主机上安装此可执行文件。有x64和x86版本,根据平台的不同,需要安装其中一个版本 可执行文件当前使用命令行运行: C:\Comp\code\install\canned\tabload\x86>tabload安装“*tab1394”C:/Comp/code/install/canned/tab1394/x86” 最后一个参数是驱动程序的.cat、.sys和.inf文件的位置 我目前的代码是:Wix 使用可执行文件安装驱动程序,wix,custom-action,Wix,Custom Action,我正在编写一个WiX安装程序,它需要安装一个驱动程序作为先决条件。需要运行一个可执行文件,以便在PC上安装驱动程序。我不想在主机上安装此可执行文件。有x64和x86版本,根据平台的不同,需要安装其中一个版本 可执行文件当前使用命令行运行: C:\Comp\code\install\canned\tabload\x86>tabload安装“*tab1394”C:/Comp/code/install/canned/tab1394/x86” 最后一个参数是驱动程序的.cat、.sys和.inf文件的位
<!-- Install correct device driver -->
<?if $(var.Platform) = x64?>
<Property Id="Win64">1</Property>
<?else?>
<Property Id="Win64">0</Property>
<?endif?>
<Binary Id="tabload64EXE" SourceFile="C:/Tableau/code/install/canned/tabload/x64/tabload.exe" />
<Binary Id="tabload32EXE" SourceFile="C:/Tableau/code/install/canned/tabload/x86/tabload.exe" />
<CustomAction Id="LaunchFile64"
BinaryKey="tabload64EXE"
ExeCommand='tabload "*tab1394" "C:/comp/code/install/canned/tab1394/x64 "'
Return="asyncNoWait" />
<CustomAction Id="LaunchFile32"
BinaryKey="tabload32EXE"
ExeCommand='tabload install "*tab1394" "C:/comp/code/install/canned/tab1394/x86 "'
Return="asyncNoWait" />
<InstallExecuteSequence>
<Custom Action="LaunchFile64" After="InstallFinalize">Win64</Custom>
<Custom Action="LaunchFile32" After="InstallFinalize">NOT Win64</Custom>
</InstallExecuteSequence>
1.
0
Win64
不是Win64
我看过奥卡的桌子。Win64属性似乎设置正确。将显示自定义操作和二进制文件,并且自定义操作的目标是指定的命令行。自定义操作的类型是196,我在网上找不到任何相关文档。当我构建并安装安装包时,程序已安装,但驱动程序组件未安装。请就如何补救这种情况提出建议
谢谢 具有解密类型的链接。我猜根本问题在于自定义操作没有延迟,因此它们不会被提升的事务执行。感谢您的回复!我尝试将Execute=“deferred”添加到CustomAction,但这并没有解决问题。