From 21668d2c163e389864759a62cbd90a35e29e4418 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Mon, 31 Aug 2020 10:06:03 -0700 Subject: [PATCH] Use `--norestart` VS installer argument conditionally (#25425) - aspnet/AspNetCore-ManualTests#175 - now compatible only with `--passive` and `--quiet` --- eng/scripts/InstallVisualStudio.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eng/scripts/InstallVisualStudio.ps1 b/eng/scripts/InstallVisualStudio.ps1 index 844da67bba..df0b0e1951 100644 --- a/eng/scripts/InstallVisualStudio.ps1 +++ b/eng/scripts/InstallVisualStudio.ps1 @@ -111,14 +111,13 @@ if (Test-path $InstallPath) { $arguments += ` '--productId', $productId, ` '--installPath', "`"$InstallPath`"", ` - '--in', "`"$responseFile`"", ` - '--norestart' + '--in', "`"$responseFile`"" if ($Passive) { - $arguments += '--passive' + $arguments += '--passive', '--norestart' } if ($Quiet) { - $arguments += '--quiet', '--wait' + $arguments += '--quiet', '--wait', '--norestart' } Write-Host