Commands for installing Mozilla Firefox (fa) without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Mozilla.Firefox.fa -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mozilla.Firefox.fa -e --silentwinget uninstall --id Mozilla.Firefox.fa -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
"Firefox Setup 160.0.1.exe" /S /PreventRebootRequired=trueCustom folder
"Firefox Setup 160.0.1.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-fa- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
ARM64 · EXE (NSIS) · All users
Silent install
"Firefox Setup 160.0.1.exe" /S /PreventRebootRequired=trueCustom folder
"Firefox Setup 160.0.1.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-fa- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
32-bit · EXE (NSIS) · All users
Silent install
"Firefox Setup 160.0.1.exe" /S /PreventRebootRequired=trueCustom folder
"Firefox Setup 160.0.1.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-fa- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-mozilla-firefox-fa.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/160.0.1/win64/fa/Firefox%20Setup%20160.0.1.exe'
$sha256 = 'FCD031A69E5AF863BC3BC117B76BC937EDE88DEA10AE970C23C3054A2AF549DA'
$file = Join-Path $env:TEMP 'Firefox Setup 160.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-fa.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/160.0.1/win64-aarch64/fa/Firefox%20Setup%20160.0.1.exe'
$sha256 = 'A3BDD5B32DA0BCC9FB6B98DDCB09D4B5C24AC686555C2C4568906EB2534BF0D7'
$file = Join-Path $env:TEMP 'Firefox Setup 160.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-fa.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/160.0.1/win32/fa/Firefox%20Setup%20160.0.1.exe'
$sha256 = 'AB9EA3603BF458DCC7CD086E04417A0BFC771D42FCA071B397178E1D5D373A91'
$file = Join-Path $env:TEMP 'Firefox Setup 160.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