Page 1 of 1

Get Chrome version from CEF4 ?

Posted: Wed Aug 01, 2018 6:51 pm
by thefunkyjoint
Hello,

Is there any method i can use to get the Chrome version used by CEF4 ?

Thanks

Re: Get Chrome version from CEF4 ?

Posted: Wed Aug 01, 2018 7:44 pm
by salvadordf
Hi,

There are several ways to get the Chromium version used by the CEF3 binaries :
  • Build a CEF4Delphi demo and load this address chrome://version
  • Build a CEF4Delphi demo and load this address https://www.whatismybrowser.com/detect/ ... er-sending or any other web page that shows your user agent string.
  • Open the directory where you decompressed the CEF3 binaries and right-click on the chrome_elf.dll file. Select Properties and open the Details tab. The Chromium version is the indicated in the File version field.
  • The chrome_elf.dll version is also available in a set of constants defined in uCEFApplication.pas called CEF_CHROMEELF_VERSION_MAJOR, CEF_CHROMEELF_VERSION_MINOR, CEF_CHROMEELF_VERSION_RELEASE and CEF_CHROMEELF_VERSION_BUILD.
  • If you need to read the version in runtime you can use the GetDLLVersion function in uCEFMiscFunctions.pas
Old CEF3 binaries didn't include the chrome_elf.dll file so you are limited to the first 2 methods.

Re: Get Chrome version from CEF4 ?

Posted: Thu Aug 02, 2018 12:49 pm
by thefunkyjoint
Thank you !