Max 2 length substring, fix publishing for MSI

This commit is contained in:
Bryan Thornbury 2015-12-01 17:11:30 -08:00
parent 69e52e8505
commit 894676b7e1

View file

@ -25,7 +25,7 @@ pushd "$env:VS140COMNTOOLS\..\..\VC"
cmd /c "vcvarsall.bat x64&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -literalpath "ENV:\$($v[0])" -value "$($v[1])"
$v = $_.split("=", 2); set-item -force -literalpath "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd