Commands for installing Nighthawk without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id TarakSharma.Nighthawk -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TarakSharma.Nighthawk -e --silentwinget uninstall --id TarakSharma.Nighthawk -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
nighthawkSetup-win-v2.1.1-x64.exe /SCustom folder
nighthawkSetup-win-v2.1.1-x64.exe /S /D=C:\Apps\nighthawk64-bit · EXE (NSIS) · All users
Silent install
nighthawkSetup-win-v2.1.1-x64.exe /SCustom folder
nighthawkSetup-win-v2.1.1-x64.exe /S /D=C:\Apps\nighthawkPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-nighthawk.ps1
$url = 'https://github.com/quantumkv/nighthawk/releases/download/2.1.1/nighthawkSetup-win-v2.1.1-x64.exe'
$sha256 = '3994C08D2A5B2D650DA7AADCA748BB027EC85D326D7764AF4F996A79EB9CCA23'
$file = Join-Path $env:TEMP 'nighthawkSetup-win-v2.1.1-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-nighthawk.ps1
$url = 'https://github.com/quantumkv/nighthawk/releases/download/2.1.1/nighthawkSetup-win-v2.1.1-x64.exe'
$sha256 = '3994C08D2A5B2D650DA7AADCA748BB027EC85D326D7764AF4F996A79EB9CCA23'
$file = Join-Path $env:TEMP 'nighthawkSetup-win-v2.1.1-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait