We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423fc4e commit e8dba50Copy full SHA for e8dba50
.github/workflows/CI.yml
@@ -268,11 +268,15 @@ jobs:
268
run: choco install nsis -y
269
shell: pwsh
270
271
- - name: Refresh PATH (Chocolatey)
+ - name: Add NSIS to PATH
272
273
run: |
274
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
275
- refreshenv
+ $dirs = @(
+ "${env:ProgramFiles(x86)}\NSIS",
276
+ "${env:ProgramFiles}\NSIS"
277
+ ) | Where-Object { $_ -and (Test-Path $_) }
278
+ if (-not $dirs) { throw "NSIS not found under Program Files." }
279
+ $dirs | ForEach-Object { $_ | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append }
280
281
- name: Generate installer
282
0 commit comments