Skip to content
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

Closed
nmoinvaz opened this issue May 17, 2019 · 5 comments
Closed

How to get the installed version number #18

nmoinvaz opened this issue May 17, 2019 · 5 comments
Labels
feature request feature request

Comments

@nmoinvaz
Copy link

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.

@nmoinvaz nmoinvaz changed the title Ability to get the version number How to get the installed version number May 17, 2019
@david-risney david-risney added the feature request feature request label May 17, 2019
@liminzhu
Copy link
Member

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 window.navigator.userAgent with ExecuteScript to get the UA string.

@david-risney
Copy link
Contributor

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?

@nmoinvaz
Copy link
Author

nmoinvaz commented May 17, 2019

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.

@nmoinvaz
Copy link
Author

nmoinvaz commented May 17, 2019

In IE it was possible to get this information via the registry "Software\Microsoft\Internet Explorer" using the svcVersion or Version keys.

@lingamy
Copy link
Collaborator

lingamy commented Sep 10, 2019

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.

@lingamy lingamy closed this as completed Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request
Projects
None yet
Development

No branches or pull requests

4 participants