Mozilla Thunderbird (be)を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Mozilla.Thunderbird.be -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mozilla.Thunderbird.be -e --silentwinget uninstall --id Mozilla.Thunderbird.be -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
"Thunderbird Setup 161.0.exe" /S /PreventRebootRequired=trueインストール先を指定
"Thunderbird Setup 161.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-thunderbird-be- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Thunderbird 161.0 (x64 be)
32ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
"Thunderbird Setup 161.0.exe" /S /PreventRebootRequired=trueインストール先を指定
"Thunderbird Setup 161.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-thunderbird-be- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Thunderbird 161.0 (x86 be)
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-mozilla-thunderbird-be.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/161.0/win64/be/Thunderbird%20Setup%20161.0.exe'
$sha256 = '91E0846750CD7AEAD368FD78B8E2A1BF83D749E3BF171760AFAFE8B7F67AB22D'
$file = Join-Path $env:TEMP 'Thunderbird Setup 161.0.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S /PreventRebootRequired=true' -Wait install-mozilla-thunderbird-be.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/161.0/win32/be/Thunderbird%20Setup%20161.0.exe'
$sha256 = '70D18830E78BD6BA8BE05C0E13CEE3054F640B9567C0B76CA08535F415D63B6A'
$file = Join-Path $env:TEMP 'Thunderbird Setup 161.0.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S /PreventRebootRequired=true' -Wait