mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
Install NSIS from Source Forge (#1392)
* Install NSIS from Source Forge * Switch to 3.06.1 Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
## Desc: Install NSIS
|
## Desc: Install NSIS
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
Choco-Install -PackageName nsis
|
Install-Binary -Url 'https://downloads.sourceforge.net/project/nsis/NSIS%203/3.06.1/nsis-3.06.1-setup.exe' -Name nsis-3.06.1-setup.exe -ArgumentList ('/S')
|
||||||
|
|
||||||
$NsisPath = "${env:ProgramFiles(x86)}\NSIS\"
|
$NsisPath = "${env:ProgramFiles(x86)}\NSIS\"
|
||||||
Add-MachinePathItem $NsisPath
|
Add-MachinePathItem $NsisPath
|
||||||
|
|||||||
@@ -93,8 +93,7 @@ function Get-MercurialVersion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-NSISVersion {
|
function Get-NSISVersion {
|
||||||
$(choco list --local-only nsis | Out-String) -match "nsis (?<version>\d+\.\d+\.?\d*\.?\d*)" | Out-Null
|
$nsisVersion = &"c:\Program Files (x86)\NSIS\makensis.exe" "/Version"
|
||||||
$nsisVersion = $Matches.Version
|
|
||||||
return "NSIS $nsisVersion"
|
return "NSIS $nsisVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user