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