title: WiX custom action by platform
body: <p>I need to create a checkbox to install drivers after installation of program (just like run program checkbox). Additional problem is that driver depends on platform of system. I'm trying to do it like that:</p>
  
  <pre><code>&lt;CustomAction Id="RunProgram" Directory="INSTALLFOLDER" ExeCommand="[INSTALLFOLDER]Application.exe" Return="asyncNoWait"/&gt;
  &lt;CustomAction Id="RunDriver64" Directory="INSTALLFOLDER" ExeCommand="[INSTALLFOLDER]driver/Installer_x64.exe" Return="asyncNoWait"/&gt;
  &lt;CustomAction Id="RunDriver32" Directory="INSTALLFOLDER" ExeCommand="[INSTALLFOLDER]driver/Installer_x86.exe" Return="asyncNoWait"/&gt;
  &lt;InstallExecuteSequence&gt;
    &lt;Custom Action="RunDriver64" After="InstallFinalize"&gt;'$(var.Platform)' != 'x64'&lt;/Custom&gt;
    &lt;Custom Action="RunDriver32" After="InstallFinalize"&gt;'$(var.Platform)' == 'x64'&lt;/Custom&gt;
  &lt;/InstallExecuteSequence&gt;
  &lt;UI&gt;
    &lt;Publish Dialog="ExitDialog" Control="Finish" Order="2" Event="DoAction" Value="RunProgram"&gt;
      WIXUI_EXITDIALOGOPTIONALCHECKBOX
    &lt;/Publish&gt;
  &lt;/UI&gt;`
  </code></pre>
  
  <p>but it doesn't work. Error message: </p>
  
  <blockquote>
    <p>Error 1   ICE03: Bad conditional string; Table: InstallExecuteSequence, Column: Condition, Key(s): RunDriver64    F:..path..\Product.wxs  26  1   ..project name..</p>
  </blockquote>
  
  <p>Also my solution is not perfect, as I'm running there a action I don't realy want 'RunProgram', but I couldn't create empty action. Any suggestions, how can I do that?</p>
  
  <p>Thanks</p>