[Windows] Install NSIS package from Chocolatey (#8394)

This commit is contained in:
Erik Bershel
2023-10-04 14:44:05 +02:00
committed by GitHub
parent 038cb56f85
commit 8b23f693e9

View File

@@ -1,10 +1,12 @@
################################################################################
## File: Install-NSIS.ps1
## Desc: Install NSIS
## Supply chain security: NSIS - managed by package manager
################################################################################
$NsisVersion = (Get-ToolsetContent).nsis.version
Install-Binary -Url "https://downloads.sourceforge.net/project/nsis/NSIS%203/${NsisVersion}/nsis-${NsisVersion}-setup.exe" -Name "nsis-${NsisVersion}-setup.exe" -ArgumentList ('/S')
Choco-Install -PackageName nsis -ArgumentList "--version", "$NsisVersion"
$NsisPath = "${env:ProgramFiles(x86)}\NSIS\"
Add-MachinePathItem $NsisPath