From 241019f020e9e4610f8747e8d305481f4551b9c2 Mon Sep 17 00:00:00 2001 From: Nir Bar Date: Thu, 30 May 2024 08:12:22 +0300 Subject: [PATCH] Try with cmd --- .github/workflows/github-actions-build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/github-actions-build.yml b/.github/workflows/github-actions-build.yml index 06e866c..5944593 100644 --- a/.github/workflows/github-actions-build.yml +++ b/.github/workflows/github-actions-build.yml @@ -51,6 +51,14 @@ jobs: $args = ( 'modify', '--installPath', $InstallPath, '--all', '--quiet', '--norestart', '--nocache' ) Start-Process -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -Wait -PassThru -NoNewWindow -ArgumentList $args Start-Process -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -Wait -PassThru -NoNewWindow -ArgumentList $args + - name: Install components + run: | + Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\" + $InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Community" + $Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",'--all', '--quiet', '--norestart', '--nocache') + # should be run twice + $process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden + $process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden - name: Build PanelSwWixExtension run: msbuild src/dirs.proj -restore -p:FullVersion=${{ env.FULL_VERSION }}