Skip to content

Commit

Permalink
including cmd-lets (#1492)
Browse files Browse the repository at this point in the history
* including cmd-lets

* make it a bit shorter.
  • Loading branch information
DocMoebiuz authored Dec 13, 2023
1 parent 1da52a2 commit c708978
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Build/downgrade_nsis.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c708978

Please sign in to comment.