ProtonClientを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Steccas.ProtonClient -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Steccas.ProtonClient -e --silentwinget uninstall --id Steccas.ProtonClient -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i ProtonClientSetup.msi /qn /norestartログを出力
msiexec /i ProtonClientSetup.msi /qn /norestart /l*v "%TEMP%\protonclient-install.log"アンインストール
msiexec /x {B651FD47-4EBF-4168-9AEC-61327E06470D} /qn /norestart- MSIプロダクトコード
- {B651FD47-4EBF-4168-9AEC-61327E06470D}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B651FD47-4EBF-4168-9AEC-61327E06470D}
- UpgradeCode
- {C6DE4E0C-ED81-43AE-98FE-3A45B295DCAA}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-protonclient.ps1
$url = 'https://github.com/steccas/ProtonClient/releases/download/1.2.3/ProtonClientSetup.msi'
$sha256 = 'D4C2C37E9FC936614D4B6517604DC87ED90F095AC0F0C4FAB8EE3CD8594427B5'
$file = Join-Path $env:TEMP 'ProtonClientSetup.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