Commands for installing Simple DNSCrypt 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 bitbeans.SimpleDNSCrypt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id bitbeans.SimpleDNSCrypt -e --silentwinget uninstall --id bitbeans.SimpleDNSCrypt -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i SimpleDNSCrypt64.msi /qn /norestartWrite a log
msiexec /i SimpleDNSCrypt64.msi /qn /norestart /l*v "%TEMP%\simple-dnscrypt-install.log"Uninstall
msiexec /x {F21D078F-4055-462F-A9E9-468A4DE37F06} /qn /norestart- MSI product code
- {F21D078F-4055-462F-A9E9-468A4DE37F06}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F21D078F-4055-462F-A9E9-468A4DE37F06}
32-bit · MSI · All users · en-US
Silent install
msiexec /i SimpleDNSCrypt.msi /qn /norestartWrite a log
msiexec /i SimpleDNSCrypt.msi /qn /norestart /l*v "%TEMP%\simple-dnscrypt-install.log"Uninstall
msiexec /x {DC7ADCCF-7167-4524-96AC-9F1FCAD86880} /qn /norestart- MSI product code
- {DC7ADCCF-7167-4524-96AC-9F1FCAD86880}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{DC7ADCCF-7167-4524-96AC-9F1FCAD86880}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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