mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Install NSIS package from Chocolatey (#8394)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user