免互動安裝Microsoft Edge Beta、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Microsoft.Edge.Beta -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Edge.Beta -e --silentwinget uninstall --id Microsoft.Edge.Beta -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i MicrosoftEdgeBetaEnterpriseX64.msi /qn /norestart寫入記錄檔
msiexec /i MicrosoftEdgeBetaEnterpriseX64.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-beta-install.log"ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i MicrosoftEdgeBetaEnterpriseARM64.msi /qn /norestart寫入記錄檔
msiexec /i MicrosoftEdgeBetaEnterpriseARM64.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-beta-install.log"32位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i MicrosoftEdgeBetaEnterpriseX86.msi /qn /norestart寫入記錄檔
msiexec /i MicrosoftEdgeBetaEnterpriseX86.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-beta-install.log"PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-microsoft-edge-beta.ps1
$url = 'https://download.microsoft.com/download/1534abe1-c667-4748-b434-e1f028289a60/MicrosoftEdgeBetaEnterpriseX64.msi'
$sha256 = '67BF795A970E537AF59138D1968AEDCA21B8A42915968BE796870059046B76F3'
$file = Join-Path $env:TEMP 'MicrosoftEdgeBetaEnterpriseX64.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-beta.ps1
$url = 'https://download.microsoft.com/download/1534abe1-c667-4748-b434-e1f028289a60/MicrosoftEdgeBetaEnterpriseARM64.msi'
$sha256 = '7EF143D6B264AB736D674410984495C11D588BA609D772B071D3CDC8B91FECFC'
$file = Join-Path $env:TEMP 'MicrosoftEdgeBetaEnterpriseARM64.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-beta.ps1
$url = 'https://download.microsoft.com/download/1534abe1-c667-4748-b434-e1f028289a60/MicrosoftEdgeBetaEnterpriseX86.msi'
$sha256 = '79B7ED2079E2277891B7B179E5424926E3EA5F2A592478CAC94E6791A7F6D0DC'
$file = Join-Path $env:TEMP 'MicrosoftEdgeBetaEnterpriseX86.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