mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Installing Windows 10 SDK
This commit is contained in:
+14
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user