mirror of https://github.com/UMSKT/xpmgr.git
Update windows.yml
This commit is contained in:
parent
d833a10b13
commit
e29aa056ba
|
@ -23,14 +23,9 @@ jobs:
|
|||
"Microsoft.VisualStudio.Component.WinXP"
|
||||
)
|
||||
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
|
||||
$Arguments = ('/c', "vs_installer.exe", '--layout D:\a\VSLayout', $workloadArgs, '--quiet')
|
||||
$Arguments = ('/c', "vs_installer.exe", '--layout', 'D:\a\VSLayout', $workloadArgs, '--quiet')
|
||||
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
|
||||
if ($realProcess.ExitCode -eq 0) {
|
||||
|
||||
}
|
||||
else {
|
||||
$realProcess = Get-Process vs_setup_bootstrapper
|
||||
if ($realProcess.ExitCode -eq 0)
|
||||
if ($process.ExitCode -eq 0)
|
||||
{
|
||||
Write-Host "components have been successfully downloaded"
|
||||
Get-ChildItem D:\a\VSLayout\Microsoft.Windows.XPSupport.*
|
||||
|
@ -40,7 +35,6 @@ jobs:
|
|||
Write-Host "components were not downloaded"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
- name: Install Windows XP Support for Visual Studio
|
||||
run: |
|
||||
|
|
Loading…
Reference in New Issue