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 CEF Version

Post Reply
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get CEF Version

Post by salvadordf »

Hi,

uCEFApplication defines several constants with the expected CEF3 DLL versions.

libcef.dll should be :

Code: Select all

  CEF_SUPPORTED_VERSION_MAJOR   = 3;  // this indicates it's CEF3
  CEF_SUPPORTED_VERSION_MINOR   = 3071;  // CEF branch
  CEF_SUPPORTED_VERSION_RELEASE = 1643; // CEF build
  CEF_SUPPORTED_VERSION_BUILD   = 0;
chrome_elf.dll has the Chromium version and it should be :

Code: Select all

  CEF_CHROMEELF_VERSION_MAJOR   = 59; 
  CEF_CHROMEELF_VERSION_MINOR   = 0; 
  CEF_CHROMEELF_VERSION_RELEASE = 3071;
  CEF_CHROMEELF_VERSION_BUILD   = 109;
In addition to that, TCEFApplication reads the version info in chrome_elf.dll and stores it in these properties :

Code: Select all

      property ChromeMajorVer              : uint16                          read FChromeVersionInfo.MajorVer;
      property ChromeMinorVer              : uint16                          read FChromeVersionInfo.MinorVer;
      property ChromeRelease               : uint16                          read FChromeVersionInfo.Release;
      property ChromeBuild                 : uint16                          read FChromeVersionInfo.Build;
      property ChromeVersion               : string                          read GetChromeVersion; // the same info but in string format
If you want to check it manually you can call GetDLLVersion with ClobalCEFApp.LibCefPath as first parameter and a TFileVersionInfo record as second parameter.
GetDLLVersion is defined in uCEFMiscFunctions.pas and TFileVersionInfo is defined in uCEFTypes.pas as

Code: Select all

  TFileVersionInfo = record
    MajorVer : uint16;
    MinorVer : uint16;
    Release  : uint16;
    Build    : uint16;
  end;
User avatar
Paulo França
Posts: 17
Joined: Mon Jul 15, 2019 2:22 am
Location: Brazil
Contact:

Re: Get CEF Version

Post by Paulo França »

This helped me too. Thank you!
Post Reply