Block X64 Bundle package on X86 OS (dotnet/core-setup#3696)
authorRakesh Singh <raksingh@microsoft.com>
Fri, 16 Feb 2018 22:04:40 +0000 (14:04 -0800)
committerGitHub <noreply@github.com>
Fri, 16 Feb 2018 22:04:40 +0000 (14:04 -0800)
* Block X64 Bundle package on X86 OS

* Update Blocker message

Commit migrated from https://github.com/dotnet/core-setup/commit/faeb20891bfdb33157c04787dc9fdd98621fb0d0

src/installer/pkg/packaging/windows/sharedframework/bundle.wxs

index 9082c31..53d9b98 100644 (file)
     ((VersionNT &gt; v6.1) OR (VersionNT = v6.1 AND ServicePackLevel &gt;= 1))
     </bal:Condition>
 
+    <?if $(var.Platform)=x64?>
+     <bal:Condition
+      Message="The $(var.ProductName) isn't supported on x86 operating systems. Please install using the corresponding x86 installer.">
+       VersionNT64
+     </bal:Condition>
+    <?endif?>
+
     <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.Foundation">
       <bal:WixStandardBootstrapperApplication
         LicenseFile="..\..\windows\sharedframework\dummyEula.rtf"