Ordres per instal·lar NTPSync sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · Portable
No cal instal·lar-lo (portable)
64 bits · EXE (Inno Setup)
Instal·lació silenciosa
NTPSync-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
NTPSync-Setup-1.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ntpsync"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{424CD576-1191-4760-A6CD-D6E2E5534E8E}_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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