Update source URL

This commit is contained in:
Corbin 2026-04-18 08:40:51 -04:00
parent 030730448d
commit fa5a1738b7

View File

@ -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 }