Ordres per instal·lar NextDNS 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 NextDNS.NextDNS -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NextDNS.NextDNS -e --silentwinget uninstall --id NextDNS.NextDNS -e --silentPer instal·lador
32 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
NextDNSSetup-3.0.13.exe /SUna altra carpeta
NextDNSSetup-3.0.13.exe /S /D=C:\Apps\nextdns- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\NextDNS
32 bits · MSI
Instal·lació silenciosa
msiexec /i NextDNSSetup-3.0.13.msi /qn /norestartDesar un registre
msiexec /i NextDNSSetup-3.0.13.msi /qn /norestart /l*v "%TEMP%\nextdns-install.log"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-nextdns.ps1
$url = 'https://storage.googleapis.com/nextdns_windows/NextDNSSetup-3.0.13.exe'
$sha256 = '1C7ED1124A0EE7E955AB0B1C1C27C6AB09EA9B644258CC5801622ED0E5ECE33A'
$file = Join-Path $env:TEMP 'NextDNSSetup-3.0.13.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-nextdns.ps1
$url = 'https://storage.googleapis.com/nextdns_windows/NextDNSSetup-3.0.13.msi'
$sha256 = '7B28FC6F45A2D9856706ACA16A33D95BA87E4E628EE1C93F165BDEC1C36D61BB'
$file = Join-Path $env:TEMP 'NextDNSSetup-3.0.13.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait