diff --git a/Build/downgrade_nsis.ps1 b/Build/downgrade_nsis.ps1 index 2d358b49..6e28d92a 100644 --- a/Build/downgrade_nsis.ps1 +++ b/Build/downgrade_nsis.ps1 @@ -2,15 +2,13 @@ ## File: Install-NSIS.ps1 ## Desc: Install NSIS ################################################################################ - $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" -Start-Process -Wait -FilePath "C:\WINDOWS\Temp\nsis-${NsisVersion}-setup.exe" -ArgumentList "/S" +# Get-Help Install-Binary -Full + +Install-Binary -Url "https://downloads.sourceforge.net/project/nsis/NSIS%203/${NsisVersion}/nsis-${NsisVersion}-setup.exe" -Type EXE -InstallArgs ('/S') -# Add the newly installed version to the path. $NsisPath = "${env:ProgramFiles(x86)}\NSIS\" -Add-MachinePathItem $NsisPath -$env:Path = Get-MachinePath +$env:PATH += ";$NsisPath" # Write out the version that's now on the path for confirmation of the installed version # in GitHub action logs.