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