mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Installing Windows 10 SDK
This commit is contained in:
1 parent
1c480ded72
commit
83d5d95956
1 file changed
+14
+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