-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the installed version number #18
Comments
I don't think we have a WebView API for that, but a way (not saying it's the best) to get version number would be calling |
We generally try to avoid exposing the version numbers since we want folks to use feature detection rather than hardcoding version checks. What is the use case you referenced? |
We try to make that information available to our platform. If we wanted to require a minimum version of Edge chromium, then we would need a way to get the version (I mean we could use the version of the WebView2Loader.dll) but also need to get the version of chromium being used -- then we would need that information before creating a IWebView2 instance. Also I want to be able to put the version information in the debug log. |
In IE it was possible to get this information via the registry "Software\Microsoft\Internet Explorer" using the svcVersion or Version keys. |
Hi Nathan, thanks for submitting the feedback! We’ve added new APIs GetWebView2BrowserVersionInfo and get_BrowserVersionInfo for getting the browser version and the corresponding channel name in the new SDK update. Make sure you update the SDK and use the canary channel for testing. |
What is the best way to get the version number for the installed version of Edge-chromium? Is there a registry key somewhere that you would recommend reading? I think there is some value possibly getting that information from IWebView2WebView, however in my use case I need it before IWebView2WebView is initialized.
The text was updated successfully, but these errors were encountered: