diff --git a/images/win/scripts/Installers/Install-NSIS.ps1 b/images/win/scripts/Installers/Install-NSIS.ps1 index 03a8065e8..47165ef14 100644 --- a/images/win/scripts/Installers/Install-NSIS.ps1 +++ b/images/win/scripts/Installers/Install-NSIS.ps1 @@ -3,7 +3,7 @@ ## 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\" Add-MachinePathItem $NsisPath diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index ce3ca0fd9..fb1beddcc 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -93,8 +93,7 @@ function Get-MercurialVersion { } function Get-NSISVersion { - $(choco list --local-only nsis | Out-String) -match "nsis (?\d+\.\d+\.?\d*\.?\d*)" | Out-Null - $nsisVersion = $Matches.Version + $nsisVersion = &"c:\Program Files (x86)\NSIS\makensis.exe" "/Version" return "NSIS $nsisVersion" }