Commands for installing dnscrypt-proxy without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id DNSCrypt.dnscrypt-proxy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DNSCrypt.dnscrypt-proxy -e --silentwinget uninstall --id DNSCrypt.dnscrypt-proxy -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i dnscrypt-proxy-x64-2.1.20.msi /qn /norestartWrite a log
msiexec /i dnscrypt-proxy-x64-2.1.20.msi /qn /norestart /l*v "%TEMP%\dnscrypt-proxy-install.log"Uninstall
msiexec /x {F0AF69CD-F137-4540-AE0A-7BD2B01E93BD} /qn /norestart- MSI product code
- {F0AF69CD-F137-4540-AE0A-7BD2B01E93BD}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0AF69CD-F137-4540-AE0A-7BD2B01E93BD}
- UpgradeCode
- {FBF99DD8-C21E-4F9B-A632-DE53BB64C45E}
- Install folder
- %ProgramFiles%/DNSCrypt
64-bit · ZIP
No installation needed (portable)
ARM64 · ZIP
No installation needed (portable)
32-bit · MSI · All users
Silent install
msiexec /i dnscrypt-proxy-x86-2.1.20.msi /qn /norestartWrite a log
msiexec /i dnscrypt-proxy-x86-2.1.20.msi /qn /norestart /l*v "%TEMP%\dnscrypt-proxy-install.log"Uninstall
msiexec /x {9460F497-2F2A-4291-BDB7-78FEA48A866A} /qn /norestart- MSI product code
- {9460F497-2F2A-4291-BDB7-78FEA48A866A}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9460F497-2F2A-4291-BDB7-78FEA48A866A}
- UpgradeCode
- {FBF99DD8-C21E-4F9B-A632-DE53BB64C45E}
- Install folder
- %ProgramFiles(x86)%/DNSCrypt
32-bit · ZIP
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-dnscrypt-proxy.ps1
$url = 'https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/2.1.20/dnscrypt-proxy-x64-2.1.20.msi'
$sha256 = '7BD55ADBCBC2FA0E94A8952C8D93A0A7F1E2B8E7A18E9DC66777A79D738524F3'
$file = Join-Path $env:TEMP 'dnscrypt-proxy-x64-2.1.20.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-dnscrypt-proxy.ps1
$url = 'https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/2.1.20/dnscrypt-proxy-x86-2.1.20.msi'
$sha256 = 'EAA7746DB2FC38F52E1445D05ECE7F42F4DA4499C787C2D66B503B80BBFF206A'
$file = Join-Path $env:TEMP 'dnscrypt-proxy-x86-2.1.20.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