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