mirror of
https://github.com/UMSKT/xpmgr.git
synced 2026-09-25 07:20:17 +02:00
Update windows.yml
This commit is contained in:
@@ -24,7 +24,7 @@ jobs:
|
|||||||
"Microsoft.VisualStudio.Component.WinXP"
|
"Microsoft.VisualStudio.Component.WinXP"
|
||||||
)
|
)
|
||||||
[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 = ('/c', 'D:\a\_temp\vs_enterprise.exe', '--layout', 'D:\a\VSLayout', $workloadArgs, '--quiet')
|
$Arguments = ('/c', 'D:\a\_temp\vs_enterprise.exe', '--layout', 'D:\a\VSLayout', $workloadArgs, '--quiet')
|
||||||
$process = Start-Process -FilePath "cmd" -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user