Skip to content

Commit 2b4f530

Browse files
committed
test 17
1 parent 2defbdf commit 2b4f530

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/windows_installer.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
installer:
1111
name: Windows MSVC Installer
12-
runs-on: windows-2022
12+
runs-on: windows-2025
1313
defaults:
1414
run:
1515
shell: pwsh
@@ -42,8 +42,9 @@ jobs:
4242
Write-Host $env:PATH
4343
Invoke-WebRequest https://deac-riga.dl.sourceforge.net/project/nsis/NSIS%203/3.10/nsis-3.10-setup.exe?viasf=1 -OutFile C:\WINDOWS\Temp\nsis-3.10-setup.exe
4444
Get-Item C:\WINDOWS\Temp\nsis-3.10-setup.exe | Format-List
45-
Invoke-Expression "& C:\WINDOWS\Temp\nsis-3.10-setup.exe \S"
46-
if ($LASTEXITCODE -eq 0) {
45+
$process = Start-Process "C:\WINDOWS\Temp\nsis-3.10-setup.exe" -ArgumentList "/S" -Wait -PassThru
46+
$exitCode = $process.ExitCode
47+
if ($exitCode -eq 0) {
4748
Write-Host "Installer ran successfully."
4849
} else {
4950
Write-Host "Installer failed with exit code $LASTEXITCODE."

0 commit comments

Comments
 (0)