diff --git a/windows/Install-Nssm.ps1 b/windows/Install-Nssm.ps1 index f34ba31..1151406 100644 --- a/windows/Install-Nssm.ps1 +++ b/windows/Install-Nssm.ps1 @@ -3,9 +3,9 @@ $PackagesPath = 'C:\Packages' $DestinationPath = 'C:\Program Files\nssm' -$InstallerUrl = 'https://nssm.cc/ci/nssm-2.24-103-gdee49fc.zip' +$InstallerUrl = 'https://nssm.cc/release/nssm-2.24.zip' -$ArchivePath = Join-Path -Path $PackagesPath -ChildPath ($InstallerUrl | Select-String -Pattern "(nssm-(?:\d\.?)+-\d.*\.zip)").Matches.Value +$ArchivePath = Join-Path -Path $PackagesPath -ChildPath ($InstallerUrl | Select-String -Pattern "(nssm-(?:\d\.?)+\.zip)").Matches.Value # Exit if the application is already installed if (Test-Path $DestinationPath) { Write-Host 'NSSM is already installed.'; exit }