Kommandon för att installera NTPSync utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · Portabel
Kräver ingen installation (portabel)
64-bitars · EXE (Inno Setup)
Tyst installation
NTPSync-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
NTPSync-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ntpsync"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{424CD576-1191-4760-A6CD-D6E2E5534E8E}_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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