Proton Authenticatorを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Proton.ProtonAuthenticator -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Proton.ProtonAuthenticator -e --silentwinget uninstall --id Proton.ProtonAuthenticator -e --silentインストーラー別
64ビット · MSI
サイレントインストール
msiexec /i ProtonAuthenticator_1.1.6_x64_en-US.msi /qn /norestartログを出力
msiexec /i ProtonAuthenticator_1.1.6_x64_en-US.msi /qn /norestart /l*v "%TEMP%\proton-authenticator-install.log"アンインストール
msiexec /x {4C66F929-9917-4BE6-932F-2DE9F0C30DAA} /qn /norestart- MSIプロダクトコード
- {4C66F929-9917-4BE6-932F-2DE9F0C30DAA}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4C66F929-9917-4BE6-932F-2DE9F0C30DAA}
- UpgradeCode
- {BD9F3A14-1005-52A5-AAD8-364FB590262F}
- インストール先フォルダー
- %ProgramFiles%/Proton Authenticator
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-proton-authenticator.ps1
$url = 'https://proton.me/download/authenticator/windows/ProtonAuthenticator_1.1.6_x64_en-US.msi'
$sha256 = '52E5C0B28BE769910FBBF24724F552ED4A75DD8571BE1004DCF6992FBA3A2CB5'
$file = Join-Path $env:TEMP 'ProtonAuthenticator_1.1.6_x64_en-US.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