title: $(var.Platform) giving x86 on x64 platform?
body: <p>I have a WiX msi contained as a package in a Burn bundle compiled for x86. Within the msi I have this code:</p>
  
  <pre><code>  &lt;?if $(var.Platform) = x64 ?&gt;
    &lt;?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?&gt;
    &lt;?else ?&gt;
    &lt;?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?&gt;
    &lt;?endif?&gt;
  
    &lt;!-- directory structures --&gt;
    &lt;Fragment&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
        &lt;Directory Id="$(var.PlatformProgramFilesFolder)"&gt;
          &lt;Directory Id="INSTALLFOLDER" Name="MyApp"&gt;
            &lt;Directory Id="MyFolder" Name="MyFolder" /&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
    &lt;/Fragment&gt;
  
    &lt;Fragment&gt;
      &lt;ComponentGroup Id="MyComponents" Directory="MyFolder"&gt;
        &lt;Component Id="MyComponent"&gt;
          &lt;File Id="MyFile" Source="file.dat" Vital="yes" KeyPath="yes"/&gt;
        &lt;/Component&gt;
      &lt;/ComponentGroup&gt;
    &lt;/Fragment&gt;
  </code></pre>
  
  <p>I'd expect this to install to the <code>Program Files</code> folder on a 64-bit system, but it's installing to <code>Program Files (x86)</code>. Is this because the bundle is running as 32-bit? How do I test for the actual OS architecture in the MSI if that's the case?</p>