<?if $(var.Platform) = x64 ?>
<Launch Condition="VersionNT64 AND (NOT NativeMachine = 43620)" Message="Please run 32-bit installer." />
<?elseif $(var.Platform) = x86 ?>
<Launch Condition="NOT VersionNT64" Message="Please run 64-bit installer" />
<?elseif $(var.Platform) = ARM64 ?>
<Launch Condition="VersionNT64 AND (NativeMachine = 43620)" Message="Please run ARM64 installer" />
<?endif?>
But here its getting messed up with the NativeMachine variables.
I tried to change the code of NativeMachine according to this. But looks like the wix installer is not picking up the NativeMachine properly. How do I specify each of the platforms so that the installer installs properly.