免互動安裝Firefox Developer Edition (eo)、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Mozilla.Firefox.DeveloperEdition.eo -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mozilla.Firefox.DeveloperEdition.eo -e --silentwinget uninstall --id Mozilla.Firefox.DeveloperEdition.eo -e --silent依安裝檔
64位元 · EXE(NSIS) · 所有使用者
靜默安裝
"Firefox Setup 151.0b10.exe" /S /PreventRebootRequired=true自訂安裝資料夾
"Firefox Setup 151.0b10.exe" /S /PreventRebootRequired=true /D=C:\Apps\firefox-developer-edition-eo- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Firefox Developer Edition
ARM64 · EXE(NSIS) · 所有使用者
靜默安裝
"Firefox Setup 151.0b10.exe" /S /PreventRebootRequired=true自訂安裝資料夾
"Firefox Setup 151.0b10.exe" /S /PreventRebootRequired=true /D=C:\Apps\firefox-developer-edition-eo- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Firefox Developer Edition
32位元 · EXE(NSIS) · 所有使用者
靜默安裝
"Firefox Setup 151.0b10.exe" /S /PreventRebootRequired=true自訂安裝資料夾
"Firefox Setup 151.0b10.exe" /S /PreventRebootRequired=true /D=C:\Apps\firefox-developer-edition-eo- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Firefox Developer Edition
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-firefox-developer-edition-eo.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/devedition/releases/151.0b10/win64/eo/Firefox%20Setup%20151.0b10.exe'
$sha256 = 'DDED616FDBEA770E40CF31C921490108E49E242BC4A74A09ECC60874E335DF8D'
$file = Join-Path $env:TEMP 'Firefox Setup 151.0b10.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-firefox-developer-edition-eo.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/devedition/releases/151.0b10/win64-aarch64/eo/Firefox%20Setup%20151.0b10.exe'
$sha256 = '3B3E509EE1162A312D5E9FE903E7CA561762B8FC7A88EBF82AE9B7A1776891A4'
$file = Join-Path $env:TEMP 'Firefox Setup 151.0b10.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-firefox-developer-edition-eo.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/devedition/releases/151.0b10/win32/eo/Firefox%20Setup%20151.0b10.exe'
$sha256 = '467B1DB73A351D5928F75C68919CB279C55F0CA74D19CD5057827F6347972F52'
$file = Join-Path $env:TEMP 'Firefox Setup 151.0b10.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