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