Do not add x86 host to PATH on 64-bit machines (#70299)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 13 Jun 2022 18:11:09 +0000 (11:11 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Jun 2022 18:11:09 +0000 (11:11 -0700)
Co-authored-by: Nikola Milosavljevic <nikolam@microsoft.com>
src/installer/pkg/sfx/installers/host.wxs

index 6ff59fa6c29c83937aea88ca716f301caf4333b9..322b9038d929398ff14827edd2f4b6bc0a134314 100644 (file)
@@ -42,6 +42,9 @@
         <?if $(var.Platform)~=x64 ?>
         <!-- For x64 installer, only add to PATH when actually on native architecture -->
         <Condition>NOT NON_NATIVE_ARCHITECTURE</Condition>
+        <?elseif $(var.Platform)~=x86 ?>
+        <!-- For x86 installer, only add to PATH when not on 64-bit platform -->
+        <Condition>NOT VersionNT64</Condition>
         <?endif?>
 
         <!-- A stable keypath with the right SxS characteristics for our PATH entry-->