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