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