Commands for installing Mozilla Firefox 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 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mozilla.Firefox -e --silentwinget uninstall --id Mozilla.Firefox -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- 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- 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- 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.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/160.0.1/win64/en-US/Firefox%20Setup%20160.0.1.exe'
$sha256 = '768E29619F3463C157F20C5AB1E4D480ACFB0D84F1A39EE60EF3151FED91CEB2'
$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.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/160.0.1/win64-aarch64/en-US/Firefox%20Setup%20160.0.1.exe'
$sha256 = 'EA224E8DD160D007D7B1075A5E129127F551728915DD1800F29EDC27EC9C9145'
$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.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/160.0.1/win32/en-US/Firefox%20Setup%20160.0.1.exe'
$sha256 = '812E92FD57E53F67A38DE114678AF4A185AA17B095E3D9BB80DDCDE1F5F5E4B4'
$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