Microsoft Edgeを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.Edge -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Edge -e --silentwinget uninstall --id Microsoft.Edge -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i MicrosoftEdgeEnterpriseX64.msi /qn /norestartログを出力
msiexec /i MicrosoftEdgeEnterpriseX64.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-install.log"ARM64 · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i MicrosoftEdgeEnterpriseARM64.msi /qn /norestartログを出力
msiexec /i MicrosoftEdgeEnterpriseARM64.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-install.log"32ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i MicrosoftEdgeEnterpriseX86.msi /qn /norestartログを出力
msiexec /i MicrosoftEdgeEnterpriseX86.msi /qn /norestart /l*v "%TEMP%\microsoft-edge-install.log"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-microsoft-edge.ps1
$url = 'https://download.microsoft.com/download/9a5569d2-a134-42cb-940f-d7225433a20c/MicrosoftEdgeEnterpriseX64.msi'
$sha256 = 'F7BC427C4D26AEFE12BD492A24959CC6CA328AEA2851614637D7133CAE329071'
$file = Join-Path $env:TEMP 'MicrosoftEdgeEnterpriseX64.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.ps1
$url = 'https://download.microsoft.com/download/9a5569d2-a134-42cb-940f-d7225433a20c/MicrosoftEdgeEnterpriseARM64.msi'
$sha256 = 'FBC24254C81CE7A0C1FB776EE6D1F58FECE30FFEDEE6F3613637117B51247918'
$file = Join-Path $env:TEMP 'MicrosoftEdgeEnterpriseARM64.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.ps1
$url = 'https://download.microsoft.com/download/9a5569d2-a134-42cb-940f-d7225433a20c/MicrosoftEdgeEnterpriseX86.msi'
$sha256 = '07D84F7FA262AB981E4DB3D1CE99380521397298B631FAE295FE8A86CA8013FC'
$file = Join-Path $env:TEMP 'MicrosoftEdgeEnterpriseX86.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