From 7c6c706160528c9234a91161b834529d4e13d761 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Fri, 28 Jul 2017 17:05:38 -0700 Subject: [vcpkg-getWindowsSDK] Also look in the paths, just in case. --- scripts/getWindowsSDK.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/getWindowsSDK.ps1 b/scripts/getWindowsSDK.ps1 index 3aa23cc56..9aebae8e3 100644 --- a/scripts/getWindowsSDK.ps1 +++ b/scripts/getWindowsSDK.ps1 @@ -59,7 +59,8 @@ Write-Verbose "`n" Write-Verbose "Looking for Windows 10 SDK" CheckWindows10SDK((Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\' -Name 'KitsRoot10' -ErrorAction SilentlyContinue).KitsRoot10) CheckWindows10SDK((Get-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots\' -Name 'KitsRoot10' -ErrorAction SilentlyContinue).KitsRoot10) - +CheckWindows10SDK("$env:ProgramFiles\Windows Kits\10") +CheckWindows10SDK("${env:ProgramFiles(x86)}\Windows Kits\10") # Windows 8.1 SDK function CheckWindows81SDK($path) @@ -81,6 +82,8 @@ Write-Verbose "`n" Write-Verbose "Looking for Windows 8.1 SDK" CheckWindows81SDK((Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\' -Name 'KitsRoot81' -ErrorAction SilentlyContinue).KitsRoot81) CheckWindows81SDK((Get-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots\' -Name 'KitsRoot81' -ErrorAction SilentlyContinue).KitsRoot81) +CheckWindows81SDK("$env:ProgramFiles\Windows Kits\8.1") +CheckWindows81SDK("${env:ProgramFiles(x86)}\Windows Kits\8.1") Write-Verbose "`n`n`n" Write-Verbose "The following Windows SDKs were found:" -- cgit v1.2.3