免互動安裝Microsoft Edge Dev、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Microsoft.Edge.Dev -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Edge.Dev -e --silentwinget uninstall --id Microsoft.Edge.Dev -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i MicrosoftEdgeDevEnterpriseX64.msi /qn /norestart寫入記錄檔
msiexec /i MicrosoftEdgeDevEnterpriseX64.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-dev-install.log"ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i MicrosoftEdgeDevEnterpriseARM64.msi /qn /norestart寫入記錄檔
msiexec /i MicrosoftEdgeDevEnterpriseARM64.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-dev-install.log"32位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i MicrosoftEdgeDevEnterpriseX86.msi /qn /norestart寫入記錄檔
msiexec /i MicrosoftEdgeDevEnterpriseX86.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-dev-install.log"PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-microsoft-edge-dev.ps1
$url = 'https://download.microsoft.com/download/ac3b091d-3ccb-4ba8-9051-b24082aa36bc/MicrosoftEdgeDevEnterpriseX64.msi'
$sha256 = '4ED215595D148EACBF7E67D6EC84795E847FC4884648A849244AEC1BB4FB7BF0'
$file = Join-Path $env:TEMP 'MicrosoftEdgeDevEnterpriseX64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-microsoft-edge-dev.ps1
$url = 'https://download.microsoft.com/download/ac3b091d-3ccb-4ba8-9051-b24082aa36bc/MicrosoftEdgeDevEnterpriseARM64.msi'
$sha256 = '0B2D9B3AF15F356ADDBE331A038372D1CD4C8599FA2F15C57666C55C5E307B87'
$file = Join-Path $env:TEMP 'MicrosoftEdgeDevEnterpriseARM64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-microsoft-edge-dev.ps1
$url = 'https://download.microsoft.com/download/ac3b091d-3ccb-4ba8-9051-b24082aa36bc/MicrosoftEdgeDevEnterpriseX86.msi'
$sha256 = 'FAC853AE0EA114344288CF07878DDC686FC12FED1CD901DB9DD3DF4E92592705'
$file = Join-Path $env:TEMP 'MicrosoftEdgeDevEnterpriseX86.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait