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 e9021e51e5
commit 4f4599c4c9
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"] }