32位/ 64位的相同wix - 如何创建条件步骤?

时间:2009-12-24 14:35:23

标签: 64-bit wix windows-installer

我正在尝试在Wix(*)中创建一个自定义步骤,这将取决于平台--32对64位。 任何建议如何做到这一点? (使用WIX而不是编写脚本等外部内容)

(*)我需要使用适当的InstallUtil版本在64位/ 32位机器上安装我的snapin。

1 个答案:

答案 0 :(得分:2)

好的,感谢我的同事伙伴,这是一个解决方案:

  <CustomAction Id="SetInstallUtilPath"
  Property="InstallUtilPath"
  Value="[WindowsFolder]\Microsoft.NET\Framework\v2.0.50727\installUtil.exe"/>
  <CustomAction Id="SetInstallUtil64Path"
  Property="InstallUtilPath"
  Value="[WindowsFolder]\Microsoft.NET\Framework64\v2.0.50727\installUtil.exe"/>

 <CustomAction Id="InstallMMC.Command"
   Property="InstallMMC"
   Value='"[InstallUtilPath]" "[INSTALLDIR]\mydll.dll"'/>
 <CustomAction Id="InstallMMC"
   BinaryKey="WixCA"
   DllEntry="CAQuietExec"
  Execute="deferred"
   Return="check"/>
相关问题