Ordres per instal·lar Simple DNSCrypt 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 bitbeans.SimpleDNSCrypt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id bitbeans.SimpleDNSCrypt -e --silentwinget uninstall --id bitbeans.SimpleDNSCrypt -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i SimpleDNSCrypt64.msi /qn /norestartDesar un registre
msiexec /i SimpleDNSCrypt64.msi /qn /norestart /l*v "%TEMP%\simple-dnscrypt-install.log"Desinstal·lar
msiexec /x {F21D078F-4055-462F-A9E9-468A4DE37F06} /qn /norestart- Codi de producte MSI
- {F21D078F-4055-462F-A9E9-468A4DE37F06}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F21D078F-4055-462F-A9E9-468A4DE37F06}
32 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i SimpleDNSCrypt.msi /qn /norestartDesar un registre
msiexec /i SimpleDNSCrypt.msi /qn /norestart /l*v "%TEMP%\simple-dnscrypt-install.log"Desinstal·lar
msiexec /x {DC7ADCCF-7167-4524-96AC-9F1FCAD86880} /qn /norestart- Codi de producte MSI
- {DC7ADCCF-7167-4524-96AC-9F1FCAD86880}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{DC7ADCCF-7167-4524-96AC-9F1FCAD86880}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-simple-dnscrypt.ps1
$url = 'https://github.com/bitbeans/SimpleDnsCrypt/releases/download/0.7.1/SimpleDNSCrypt64.msi'
$sha256 = '5BA0C94774ACD7ADE18446B4351E7D28A948C490AEFC50DC6C08C13551F19F7F'
$file = Join-Path $env:TEMP 'SimpleDNSCrypt64.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 install-simple-dnscrypt.ps1
$url = 'https://github.com/bitbeans/SimpleDnsCrypt/releases/download/0.7.1/SimpleDNSCrypt.msi'
$sha256 = 'CAC6B8119AF3DA70A5977A2E73EE5214303990FEDD7ABBC5F247A1E2CF19A663'
$file = Join-Path $env:TEMP 'SimpleDNSCrypt.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