Fix for #491: make powershell.exe work in new window

FullCLR windows host doesn't read keys when run in separate window.
Fix: don't use Start-Process -Wait $false -NoNewWindow $false

Instead, ommit this parameters. Seems like a bug in Start-Process.
This commit is contained in:
Sergei Vorobev 2016-02-04 13:19:24 -08:00
parent 1d53e655f4
commit f8abd74658

View file

@ -38,9 +38,12 @@ function Start-DevPSGithub
$startProcessArgs = @{
FilePath = "$binDir\powershell.exe"
ArgumentList = "$ArgumentList"
NoNewWindow = $NoNewWindow
Wait = $NoNewWindow
}
if ($NoNewWindow) {
$startProcessArgs.NoNewWindow = $true
$startProcessArgs.Wait = $true
}
Start-Process @startProcessArgs
}