From 13a30f17500245aa6c0724f9bd042f23c0d4f122 Mon Sep 17 00:00:00 2001 From: HenriqueB Date: Mon, 29 Apr 2019 12:11:47 -0300 Subject: [PATCH] Fixes #2580 --- lib/install.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/install.ps1 b/lib/install.ps1 index ea20c8a499..d497190468 100644 --- a/lib/install.ps1 +++ b/lib/install.ps1 @@ -701,7 +701,10 @@ function run($exe, $arg, $msg, $continue_exit_codes) { $parameters.arg = $arg; } - $proc = start-process $exe -wait -ea stop -passthru @parameters + # Don't use Start-Process -Wait + # https://github.com/PowerShell/PowerShell/issues/6561 + $proc = start-process $exe -ea stop -passthru @parameters + $proc | Wait-Process if($proc.exitcode -ne 0) {