From 5c7589ca5c69fd72dca980e9d76772ec336bd49f Mon Sep 17 00:00:00 2001 From: TheTank20 Date: Sat, 8 Jul 2023 14:23:24 -0500 Subject: [PATCH] Update windows.yml --- .github/workflows/windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6a00263..b072d9a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -24,8 +24,8 @@ 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 + $Arguments = ('/c', 'D:\a\_temp\vs_enterprise.exe', '--layout', 'D:\a\VSLayout', $workloadArgs, '--silent') + $process = Start-Process -FilePath "cmd" -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden if ($process.ExitCode -eq 0) { Write-Host "components have been successfully downloaded"