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