Discovering whether the IE11 renderer is available

I can tell Windows that I want to use the IE11 renderer in an HTMLViewer, but is it possible to find out whether that renderer is available, and if so, how? Rather than the user getting a JavaScript error, or worse, and then finding by chance that updating his IE version fixes it, I’d like to be able to issue a useful message and then quit.

I guess I can read the registry, but I wouldn’t know which entry defines available renderers.

You could run a bit of JavaScript to ask IE for it’s version.
see
https://stackoverflow.com/questions/21825157/internet-explorer-11-detection

[OT ?] Isn’t Microsoft Internet Explorer (MSIE) discontinued ?

Information taken there:
https://en.wikipedia.org/wiki/Internet_Explorer

and replaced in 2015-07-29 by Microsoft Edge:
https://en.wikipedia.org/wiki/Microsoft_Edge

True, but I was focussing on the Registry. I found a Q/A which led me to:

[code]Dim tmpv as variant, tmps, items() as string, reg as RegistryItem, version As Integer

reg = new RegistryItem (“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer”, false)
tmpv = reg.Value(“svcVersion”)
if (tmpv=Nil) then return 0

tmps = tmpv
items = tmps.split (“.”)

Return CLong (items(0))
[/code]

I’ll have to check into IE vs. Edge.

[quote=422810:@Emile Schwarz][OT ?] Isn’t Microsoft Internet Explorer (MSIE) discontinued ? and replaced in 2015-07-29 by Microsoft Edge:
https://en.wikipedia.org/wiki/Microsoft_Edge[/quote]

That article says:

So if IE11 is there in Win10 by default …

OK. It was just in case you do not know. I discovers that recently (and I have Windows 10 since… its release). :wink:

HTMLViewer in Xojo will continue to use IE for some time.

Actually I didn’t. So forcing me to check that article was very useful - thanks :slight_smile:

I do not know the difference between both