Commands for installing NTPSync 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 NASS.NTPSync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NASS.NTPSync -e --silentwinget uninstall --id NASS.NTPSync -e --silentBy installer
64-bit · Portable
No installation needed (portable)
64-bit · EXE (Inno Setup)
Silent install
NTPSync-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
NTPSync-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ntpsync"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{424CD576-1191-4760-A6CD-D6E2E5534E8E}_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-ntpsync.ps1
$url = 'https://github.com/manfred-mueller/NTPSync/releases/download/1.0.0/NTPSync-Setup-1.0.0.exe'
$sha256 = '1713A5EA735939DDF61D9EA42523B10D6DD3C05716DBC3DCEDB621F67C31D820'
$file = Join-Path $env:TEMP 'NTPSync-Setup-1.0.0.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait