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:
Your Name
2026-02-07 10:51:49 +02:00
parent 44cf97a1ea
commit 2a12e04788
2 changed files with 24 additions and 45 deletions
+1 -1
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"] }