mirror of https://github.com/UMSKT/xpmgr.git
Update windows.yml
This commit is contained in:
parent
904ef040a8
commit
5c7589ca5c
|
@ -24,8 +24,8 @@ jobs:
|
||||||
)
|
)
|
||||||
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
|
[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"
|
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')
|
$Arguments = ('/c', 'D:\a\_temp\vs_enterprise.exe', '--layout', 'D:\a\VSLayout', $workloadArgs, '--silent')
|
||||||
$process = Start-Process -FilePath "D:\a\_temp\vs_enterprise.exe" -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
|
$process = Start-Process -FilePath "cmd" -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
|
||||||
if ($process.ExitCode -eq 0)
|
if ($process.ExitCode -eq 0)
|
||||||
{
|
{
|
||||||
Write-Host "components have been successfully downloaded"
|
Write-Host "components have been successfully downloaded"
|
||||||
|
|
Loading…
Reference in New Issue