Kommandon för att installera Mozilla Firefox (cs) utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id Mozilla.Firefox.cs -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mozilla.Firefox.cs -e --silentwinget uninstall --id Mozilla.Firefox.cs -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
"Firefox Setup 161.0.1.exe" /S /PreventRebootRequired=trueEgen mapp
"Firefox Setup 161.0.1.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-cs- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
ARM64 · EXE (NSIS) · Alla användare
Tyst installation
"Firefox Setup 161.0.1.exe" /S /PreventRebootRequired=trueEgen mapp
"Firefox Setup 161.0.1.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-cs- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
32-bitars · EXE (NSIS) · Alla användare
Tyst installation
"Firefox Setup 161.0.1.exe" /S /PreventRebootRequired=trueEgen mapp
"Firefox Setup 161.0.1.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-cs- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-mozilla-firefox-cs.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/161.0.1/win64/cs/Firefox%20Setup%20161.0.1.exe'
$sha256 = '97DB421EB849639EA60AD8D9AD557FC7985F8C180C1031636F3BCC852800684D'
$file = Join-Path $env:TEMP 'Firefox Setup 161.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-firefox-cs.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/161.0.1/win64-aarch64/cs/Firefox%20Setup%20161.0.1.exe'
$sha256 = 'FB1B0BB06E94B367F4497CBFB8E47D91B66B2CDBB4D6C3961BA705B3AFEF9472'
$file = Join-Path $env:TEMP 'Firefox Setup 161.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-firefox-cs.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/161.0.1/win32/cs/Firefox%20Setup%20161.0.1.exe'
$sha256 = 'A88B6351D3E8181DBBB6CDEE35C0776BAEF2B5FDFC99C3DAFDC75F28BB770584'
$file = Join-Path $env:TEMP 'Firefox Setup 161.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