Fix WebView2 detection - use loader API instead of registry

Registry check gave false negatives on systems where WebView2
is installed through Edge rather than EdgeUpdate. Now calls
GetAvailableCoreWebView2BrowserVersionString (statically linked)
which detects all installation methods.
This commit is contained in:
2026-02-07 10:51:49 +02:00
parent e36646f7d1
commit 4d907f3547
2 changed files with 24 additions and 45 deletions

View File

@@ -22,4 +22,4 @@ chrono = "0.4"
anyhow = "1"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["winuser", "sysinfoapi", "windef", "winreg", "shellapi"] }
winapi = { version = "0.3", features = ["winuser", "sysinfoapi", "windef", "shellapi"] }