Use `--norestart` VS installer argument conditionally (#25425)

- aspnet/AspNetCore-ManualTests#175
- now compatible only with `--passive` and `--quiet`
This commit is contained in:
Doug Bunting 2020-08-31 10:06:03 -07:00 committed by GitHub
parent c2f97933fe
commit 21668d2c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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