Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Get Chrome version from CEF4 ?

Post Reply
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Get Chrome version from CEF4 ?

Post by thefunkyjoint »

Hello,

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

Thanks
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get Chrome version from CEF4 ?

Post 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.
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Get Chrome version from CEF4 ?

Post by thefunkyjoint »

Thank you !
Post Reply