dnscrypt-proxyを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i dnscrypt-proxy-x64-2.1.20.msi /qn /norestartログを出力
msiexec /i dnscrypt-proxy-x64-2.1.20.msi /qn /norestart /l*v "%TEMP%\dnscrypt-proxy-install.log"アンインストール
msiexec /x {F0AF69CD-F137-4540-AE0A-7BD2B01E93BD} /qn /norestart- MSIプロダクトコード
- {F0AF69CD-F137-4540-AE0A-7BD2B01E93BD}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F0AF69CD-F137-4540-AE0A-7BD2B01E93BD}
- UpgradeCode
- {FBF99DD8-C21E-4F9B-A632-DE53BB64C45E}
- インストール先フォルダー
- %ProgramFiles%/DNSCrypt
64ビット · ZIP
インストール不要(ポータブル)
ARM64 · ZIP
インストール不要(ポータブル)
32ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i dnscrypt-proxy-x86-2.1.20.msi /qn /norestartログを出力
msiexec /i dnscrypt-proxy-x86-2.1.20.msi /qn /norestart /l*v "%TEMP%\dnscrypt-proxy-install.log"アンインストール
msiexec /x {9460F497-2F2A-4291-BDB7-78FEA48A866A} /qn /norestart- MSIプロダクトコード
- {9460F497-2F2A-4291-BDB7-78FEA48A866A}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9460F497-2F2A-4291-BDB7-78FEA48A866A}
- UpgradeCode
- {FBF99DD8-C21E-4F9B-A632-DE53BB64C45E}
- インストール先フォルダー
- %ProgramFiles(x86)%/DNSCrypt
32ビット · ZIP
インストール不要(ポータブル)
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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