i hate PowerShell

This commit is contained in:
TheTank20 2023-07-08 14:11:18 -05:00 committed by GitHub
parent 2d1656427c
commit 904ef040a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ jobs:
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
Invoke-WebRequest -URI "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile "D:\a\_temp\vs_enterprise.exe"
$Arguments = ('--layout', 'D:\a\VSLayout', $workloadArgs, '--silent')
$process = Start-Process -FilePath "D:\a\_temp\vs_enterprise.exe" -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden -RedirectStandardOutput
$process = Start-Process -FilePath "D:\a\_temp\vs_enterprise.exe" -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
if ($process.ExitCode -eq 0)
{
Write-Host "components have been successfully downloaded"