Befehle, um NTPSync ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit 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 --silentNach Installer
64-Bit · Portabel
Keine Installation nötig (portabel)
64-Bit · EXE (Inno Setup)
Stille Installation
NTPSync-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Eigener Ordner
NTPSync-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ntpsync"- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{424CD576-1191-4760-A6CD-D6E2E5534E8E}_is1
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
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