[研究]檢測 Windows 是否內建 Microsoft Edge WebView2 Runtime
2026-02-25
1️⃣ 系統版本檢查
部分 Windows 版本已經內建 WebView2 Runtime(Evergreen 版本):
| Windows 版本 | WebView2 內建狀態 |
|---|---|
| Windows 10 1809 及以後 | 部分內建,需更新 Edge Runtime |
| Windows 11 | 預裝 WebView2 Runtime |
| Windows Server 2019/2022 | 不一定內建,建議手動安裝 |
| Windows Server 2022 LTSC | 通常未預裝,需要手動安裝 |
Windows 10 1809 以後部分更新版本有 Edge WebView2 隨系統更新自帶,但不保證所有機器都有。
2️⃣ 檔案層檢查
WebView2 Runtime 的預設安裝路徑:
64-bit 系統(系統範圍安裝)
C:\Program Files (x86)\Microsoft\EdgeWebView\Application
32-bit 系統(系統範圍安裝)
C:\Program Files\Microsoft\EdgeWebView\Application
檢查該資料夾是否存在,以及裡面是否有 msedgewebview2.exe 或版本號子資料夾。
*****
註:實際測試
Windows 11 (consumer editions), version 26H1 (x64) - DVD (Chinese-Traditional)(2026-02-11)
下圖,
3️⃣ 註冊表檢查
WebView2 安裝後會在註冊表中留下標記:
64-bit 系統:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4290-8BDF-00C03C6C0A0F}
32-bit 系統:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4290-8BDF-00C03C6C0A0F}
若該鍵存在,表示系統安裝了 WebView2 Runtime。你可以查看 pv 值,得到版本號。
註:實際測試,Windows 11 (consumer editions), version 26H1 (x64)已經內建,但該機碼不存在。
4️⃣ PowerShell 檢查
打開 PowerShell,輸入以下命令檢查 WebView2:
# 檢查是否存在 WebView2 的註冊鍵
$regPath = "HKLM:\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4290-8BDF-00C03C6C0A0F}"
if (Test-Path $regPath) {
Get-ItemProperty $regPath | Select-Object pv
} else {
Write-Output "WebView2 Runtime 未安裝"
}
|
如果輸出有 pv(版本號),表示已安裝。
如果顯示「未安裝」,則系統沒有 WebView2。
註:實際測試,Windows 11 (consumer editions), version 26H1 (x64)已經內建,但該機碼不存在。
5️⃣ 透過 Edge 安裝器檢查
你也可以從官方下載器執行安裝:
官方網址: Microsoft Edge WebView2 Runtime
https://developer.microsoft.com/zh-tw/microsoft-edge/webview2/?form=MA13LH
https://developer.microsoft.com/en-us/microsoft-edge/webview2/?form=MA13LH
如果安裝器提示「已安裝,且針對系統安裝」就表示內建或已安裝。
註:實際測試
下載、安裝和更新Edge Microsoft疑難解答秘訣
https://go.microsoft.com/fwlink/?linkid=2068169&hl=&product=%7BF3017226-FE2A-4295-8BDF-00C3A9A7E4C5%7D&error=0x80040828&extra_code=0&guver=1.3.221.3&m=1&os=10.0.28000.1575&sp=&iid=&brand=&source=gethelp
💡 小結
最快的檢查方式:
- 查看 C:\Program Files (x86)\Microsoft\EdgeWebView\Application 是否存在。
- 或用 PowerShell 查註冊表 EdgeUpdate\Clients\{F3017226-FE2A-4290-8BDF-00C03C6C0A0F}。
**********
敝人認為用安裝法檢測,或檔案目錄是否存在檢測,會比較準。
(完)




沒有留言:
張貼留言