Mozilla Thunderbird (th)を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Mozilla.Thunderbird.th -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mozilla.Thunderbird.th -e --silentwinget uninstall --id Mozilla.Thunderbird.th -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
"Thunderbird Setup 160.0.exe" /S /PreventRebootRequired=trueインストール先を指定
"Thunderbird Setup 160.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-thunderbird-th- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Thunderbird 160.0 (x64 th)
32ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
"Thunderbird Setup 160.0.exe" /S /PreventRebootRequired=trueインストール先を指定
"Thunderbird Setup 160.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-thunderbird-th- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Thunderbird 160.0 (x86 th)
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-mozilla-thunderbird-th.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/160.0/win64/th/Thunderbird%20Setup%20160.0.exe'
$sha256 = '42969D1CBB89923A1312BA00E0EF67FDAD8D2C36FF2FD4F4876E0008CE2AB654'
$file = Join-Path $env:TEMP 'Thunderbird Setup 160.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-th.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/160.0/win32/th/Thunderbird%20Setup%20160.0.exe'
$sha256 = 'B1829E11B9DD7064AB6DF3998F6B71E1F0A9F464F6018A1AA13A9C397CE359A7'
$file = Join-Path $env:TEMP 'Thunderbird Setup 160.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