Skip to content

Commit c2a2617

Browse files
committed
Try more direct call
1 parent 9211ed7 commit c2a2617

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,14 @@ jobs:
8484
- name: Install missing Visual Studio components
8585
if: matrix.os != 'windows-2019' # This is only an issue in later Windows versions
8686
run: |
87-
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
8887
[string]$WorkloadArgs = @(
8988
"Microsoft.VisualStudio.Component.VC.$Env:MSVC_VERSION.$Env:VS_VERSION.ATL"
9089
) | ForEach-Object {"--add $_"}
91-
$ArgumentList = ('/c', 'vs_installer.exe', 'modify', '--installPath', "`"$Env:VS_PATH`"", $WorkloadArgs, '--quiet', '--norestart', '--nocache')
90+
$ArgumentList = ('modify', '--installPath', "`"$Env:VS_PATH`"", $WorkloadArgs, '--quiet', '--norestart', '--nocache')
9291
echo "cmd.exe $($ArgumentList -join ' ')"
9392
# should be run twice for some reason
94-
Start-Process -FilePath cmd.exe -ArgumentList $ArgumentList -Wait -PassThru -WindowStyle Hidden
95-
Start-Process -FilePath cmd.exe -ArgumentList $ArgumentList -Wait -PassThru -WindowStyle Hidden
93+
Start-Process -FilePath vs_installer.exe -ArgumentList $ArgumentList -Wait -PassThru -WindowStyle Hidden
94+
Start-Process -FilePath vs_installer.exe -ArgumentList $ArgumentList -Wait -PassThru -WindowStyle Hidden
9695
9796
- name: Build and register the PyCOMTest server dll
9897
run: |

0 commit comments

Comments
 (0)