คำสั่งสำหรับติดตั้ง Mozilla Firefox (ms) โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id Mozilla.Firefox.ms -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mozilla.Firefox.ms -e --silentwinget uninstall --id Mozilla.Firefox.ms -e --silentแยกตามตัวติดตั้ง
64 บิต · EXE (NSIS) · ผู้ใช้ทุกคน
ติดตั้งแบบเงียบ
"Firefox Setup 159.0.exe" /S /PreventRebootRequired=trueกำหนดโฟลเดอร์เอง
"Firefox Setup 159.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-ms- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
ARM64 · EXE (NSIS) · ผู้ใช้ทุกคน
ติดตั้งแบบเงียบ
"Firefox Setup 159.0.exe" /S /PreventRebootRequired=trueกำหนดโฟลเดอร์เอง
"Firefox Setup 159.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-ms- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
32 บิต · EXE (NSIS) · ผู้ใช้ทุกคน
ติดตั้งแบบเงียบ
"Firefox Setup 159.0.exe" /S /PreventRebootRequired=trueกำหนดโฟลเดอร์เอง
"Firefox Setup 159.0.exe" /S /PreventRebootRequired=true /D=C:\Apps\mozilla-firefox-ms- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-mozilla-firefox-ms.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/159.0/win64/ms/Firefox%20Setup%20159.0.exe'
$sha256 = 'DCE0E36C2D6F65FC4A9C6E25D4EED3FE9DA4C28BC0375BDC025EE3659688454E'
$file = Join-Path $env:TEMP 'Firefox Setup 159.0.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-mozilla-firefox-ms.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/159.0/win64-aarch64/ms/Firefox%20Setup%20159.0.exe'
$sha256 = 'D344EC779E637A81857F97AA67B4EDDCE3E5FEF62FB315F74658087B6F0A5620'
$file = Join-Path $env:TEMP 'Firefox Setup 159.0.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-mozilla-firefox-ms.ps1
$url = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/159.0/win32/ms/Firefox%20Setup%20159.0.exe'
$sha256 = '6190398BAEB90132BC6B50EE8169312D392C58497F01682288A4742C41262B55'
$file = Join-Path $env:TEMP 'Firefox Setup 159.0.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