mirror of https://github.com/UMSKT/xpmgr.git
Update windows.yml
This commit is contained in:
parent
bf138e7f90
commit
de67a8a523
|
@ -23,9 +23,9 @@ jobs:
|
|||
"Microsoft.VisualStudio.Component.WinXP"
|
||||
)
|
||||
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
|
||||
Invoke-WebRequest -URI "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile "D:\a\TempDir\vs_enterprise.exe"
|
||||
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\TempDir\vs_enterprise.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle -RedirectStandardOutput -Hidden
|
||||
$process = Start-Process -FilePath "D:\a\_temp\vs_enterprise.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle -RedirectStandardOutput -Hidden
|
||||
if ($process.ExitCode -eq 0)
|
||||
{
|
||||
Write-Host "components have been successfully downloaded"
|
||||
|
@ -33,7 +33,7 @@ jobs:
|
|||
}
|
||||
else
|
||||
{
|
||||
Write-Host "components were not downloaded"
|
||||
Write-Host "components were not downloaded".
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue