diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e0f727e7..43556d1f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,9 +39,7 @@ jobs: - name: Downgrade NSIS shell: pwsh - run: | - .\Build\downgrade_nsis.ps1 - makensis.exe /VERSION + run: .\Build\downgrade_nsis.ps1 - name: Restore NuGet packages working-directory: ${{env.GITHUB_WORKSPACE}} diff --git a/Build/downgrade_nsis.ps1 b/Build/downgrade_nsis.ps1 index a8b3dbc4..2b9c1bcb 100644 --- a/Build/downgrade_nsis.ps1 +++ b/Build/downgrade_nsis.ps1 @@ -5,8 +5,10 @@ $NsisVersion = "3.04" Invoke-WebRequest "https://netcologne.dl.sourceforge.net/project/nsis/NSIS%203/${NsisVersion}/nsis-${NsisVersion}-setup.exe" -OutFile "C:\WINDOWS\Temp\nsis-${NsisVersion}-setup.exe" -Invoke-Expression "& C:\WINDOWS\Temp\nsis-3.04-setup.exe /S" +Invoke-Expression "& C:\WINDOWS\Temp\nsis-${NsisVersion}-setup.exe /S" $NsisPath = "${env:ProgramFiles(x86)}\NSIS\" Add-MachinePathItem $NsisPath -$env:Path = Get-MachinePath \ No newline at end of file +$env:Path = Get-MachinePath + +makensis.exe /VERSION \ No newline at end of file