Skip to content

Commit edaa7d9

Browse files
committed
ci(windows): Skip installing Inno Setup if already installed
GitHub had removed Inno Setup from the Windows Server 2025 image, but now they've recently reintroduced it: https://redirect.github.com/actions/runner-images/issues/12947#issuecomment-3416540769 This new image with Inno Setup pre-installed is not generally available yet, so we still need to keep the "Install latest Inno Setup" CI step around, because our Windows CI runner might be randomly assigned an older version of the Windows 2025 image, where Inno Setup doesn't come pre-installed. To prevent that step from randomly failing, however, we must invoke the "winget install" command with the --no-upgrade option, which description reads: "Skips upgrade if an installed version already exists".
1 parent f779f4a commit edaa7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
162162
- name: Install latest Inno Setup
163163
run: |
164-
winget install --id JRSoftware.InnoSetup --exact --silent --source winget
164+
winget install --id JRSoftware.InnoSetup --exact --no-upgrade --silent --source winget
165165
# Add to PATH
166166
Add-Content $env:GITHUB_PATH "$env:LOCALAPPDATA\Programs\Inno Setup 6"
167167

0 commit comments

Comments
 (0)