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