From bf138e7f9024c11c4373ebfc15d43f8e4dc5a5d7 Mon Sep 17 00:00:00 2001 From: TheTank20 Date: Sat, 8 Jul 2023 14:03:10 -0500 Subject: [PATCH] Update windows.yml --- .github/workflows/windows.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 9cd357d..8e07d2e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -23,8 +23,9 @@ jobs: "Microsoft.VisualStudio.Component.WinXP" ) [string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_} - $Arguments = ('/c', "vs_installer.exe", '--layout', 'D:\a\VSLayout', $workloadArgs) - $process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden + Invoke-WebRequest -URI "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile "D:\a\TempDir\vs_enterprise.exe" + $Arguments = ('--layout', 'D:\a\VSLayout', $workloadArgs, '--silent') + $process = Start-Process -FilePath "D:\a\TempDir\vs_enterprise.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle -RedirectStandardOutput -Hidden if ($process.ExitCode -eq 0) { Write-Host "components have been successfully downloaded"