Ordres per instal·lar Mozilla Thunderbird (ca) sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
"Thunderbird Setup 160.0.exe" /S /PreventRebootRequired=trueUna altra carpeta
"Thunderbird Setup 160.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-thunderbird-ca- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Thunderbird 160.0 (x64 ca)
32 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
"Thunderbird Setup 160.0.exe" /S /PreventRebootRequired=trueUna altra carpeta
"Thunderbird Setup 160.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-thunderbird-ca- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Thunderbird 160.0 (x86 ca)
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-mozilla-thunderbird-ca.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/160.0/win64/ca/Thunderbird%20Setup%20160.0.exe'
$sha256 = '948DC51170C114861D92AB3752D24EC1588A824EB5C43355118DF1D4799C9B80'
$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-ca.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/160.0/win32/ca/Thunderbird%20Setup%20160.0.exe'
$sha256 = 'D411C00CBEFECE2FAA487E3A359D0903667E754D91F6D81BF9C00528F9526936'
$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