Skip to content

Commit

Permalink
Add '--installPath'
Browse files Browse the repository at this point in the history
  • Loading branch information
demianmnave committed Nov 19, 2024
1 parent 6aa3dcd commit f1170c4
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ninja-msvc17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@ jobs:
- name: Run vs_installer.exe
shell: pwsh
run: |
$vspath = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise'
Test-Path -Path $vspath | Should -Be $true
$vsinstaller = 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe'
Test-Path -Path $vsinstaller | Should -Be $true
$modify = Start-Process -Wait -PassThru -FilePath $vsinstaller `
-ArgumentList 'modify', '--add', 'Microsoft.VisualStudio.Component.VC.14.40.17.10.x86.x64', '--quiet', '--wait'
-ArgumentList 'modify', '--installPath', "$vspath", '--quiet', '--norestart', '--nocache' `
'--add', 'Microsoft.VisualStudio.Component.VC.14.40.17.10.x86.x64'
Write-Host $modify.ExitCode
Get-ChildItem -Recurse 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC'
$vsbin = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64'
Test-Path -Path $vsbin | Should -Be $true
$clexe = Join-Path $vsbin 'cl.exe'
Test-Path -Path $clexe | Should -Be $true
#$vsbin = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64'
#$clexe = Join-Path $vsbin 'cl.exe'
#Test-Path -Path $clexe | Should -Be $true
#& $clexe /?
& $clexe /?

0 comments on commit f1170c4

Please sign in to comment.