Wrap calls to choco install in Start-NativeExecution (#2547)

This commit is contained in:
Sergei Vorobev
2016-10-27 13:06:17 -07:00
committed by Dongbo Wang
parent a659a95a00
commit 5c6a11213b
+2 -2
View File
@@ -1010,7 +1010,7 @@ function Start-PSBootstrap {
log "Cmake is already installed. Skipping installation."
} else {
log "Cmake not present. Installing cmake."
choco install cmake -y --version 3.6.0
Start-NativeExecution { choco install cmake -y --version 3.6.0 }
if (-not ($machinePath.ToLower().Contains($cmakePath.ToLower()))) {
log "Adding $cmakePath to Path environment variable"
$env:Path += ";$cmakePath"
@@ -1025,7 +1025,7 @@ function Start-PSBootstrap {
if (-not $sdkPresent) {
log "Windows 10 SDK not present. Installing $packageName."
choco install windows-sdk-10.0 -y
Start-NativeExecution { choco install windows-sdk-10.0 -y }
} else {
log "Windows 10 SDK present. Skipping installation."
}