Skip to content

Commit

Permalink
Change download method for NSIS (#1477)
Browse files Browse the repository at this point in the history
Fixes #1476
  • Loading branch information
neilenns authored Dec 7, 2023
1 parent c77396c commit 7579acb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Build/downgrade_nsis.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
################################################################################

$NsisVersion = "3.04"
Install-Binary -Url "https://downloads.sourceforge.net/project/nsis/NSIS%203/${NsisVersion}/nsis-${NsisVersion}-setup.exe" -Name "nsis-${NsisVersion}-setup.exe" -ArgumentList ('/S')
Invoke-WebRequest "https://netcologne.dl.sourceforge.net/project/nsis/NSIS%203/${NsisVersion}/nsis-${NsisVersion}-setup.exe" -OutFile "C:\WINDOWS\Temp\nsis-${NsisVersion}-setup.exe"
Start-Process -Wait -FilePath "C:\WINDOWS\Temp\nsis-${NsisVersion}-setup.exe" -ArgumentList "/S"

# Add the newly installed version to the path.
$NsisPath = "${env:ProgramFiles(x86)}\NSIS\"
Add-MachinePathItem $NsisPath
$env:Path = Get-MachinePath
$env:Path = Get-MachinePath

# Write out the version that's now on the path for confirmation of the installed version
# in GitHub action logs.
makensis.exe /VERSION

0 comments on commit 7579acb

Please sign in to comment.