Skip to content

Commit c7faa44

Browse files
committed
feat: Use winget
1 parent 431193f commit c7faa44

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/windows.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
matrix:
2121
variant:
2222
- arch: x64
23-
runner: windows-latest
23+
runner: windows-2025
2424
triplet: x64-windows
2525
#- arch: arm64
2626
# runner: windows-11-arm
@@ -41,9 +41,11 @@ jobs:
4141
Invoke-WebRequest https://files.jrsoftware.org/is/6/innosetup-6.5.1.exe -OutFile innosetup.exe
4242
Expand-Archive -Force 'gettext.zip'
4343
move gettext\bin\* C:\Windows\System32
44-
Start-Process -Verb runAs -FilePath innosetup.exe -ArgumentList '/SILENT', '/SUPPRESSMSGBOXES', '/NORESTART', '/SP-' -Wait
44+
winget upgrade winget --accept-package-agreements --accept-source-agreements --disable-interactivity
45+
winget install --id JRSoftware.InnoSetup -e --accept-package-agreements --accept-source-agreements --disable-interactivity
4546
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
46-
[System.Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files (x86)\Inno Setup 6", "User")
47+
[System.Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files (x86)\Inno Setup 6;%LOCALAPPDATA%\Programs\Inno Setup 6", "User")
48+
4749
- name: "Vcpkg"
4850
uses: johnwason/vcpkg-action@v7
4951
id: vcpkg

0 commit comments

Comments
 (0)