From 83d5d95956e257779724e227b24a787330d96bb7 Mon Sep 17 00:00:00 2001 From: Karol Kaczmarek Date: Thu, 21 Jul 2016 16:10:57 -0700 Subject: [PATCH] Installing Windows 10 SDK --- build.psm1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.psm1 b/build.psm1 index 7fc4ce8ad..cd9175591 100644 --- a/build.psm1 +++ b/build.psm1 @@ -638,6 +638,20 @@ function Start-PSBootstrap { } } + # Install Windows 10 SDK + $sdkPath = "${env:ProgramFiles(x86)}\Microsoft SDKs\Windows\v10.0A" + $packageName = "windows-sdk-10.0" + + if (-not (Test-Path -Path $sdkPath -PathType Container)) + { + log "Windows 10 SDK not present. Installing $packageName." + choco install windows-sdk-10.0 -y + } + else + { + log "Windows 10 SDK present. Skipping installation." + } + # Update machine environment path if ($newMachineEnvironmentPath -ne $machinePath) {