Page 1 of 1

Re: Move CEF library to spesific folder

Posted: Fri Jul 06, 2018 9:24 am
by salvadordf
CEF4Delphi can be configured to use a different directory for the CEF3 binaries with this :

Code: Select all

  GlobalCEFApp.FrameworkDirPath     := 'cef';
  GlobalCEFApp.ResourcesDirPath     := 'cef';
  GlobalCEFApp.LocalesDirPath       := 'cef\locales';
Replace 'cef' and 'cef\locales' with your custom directory.

You may also need to set this property if you execute your app from the Start menu or other apps.

Code: Select all

  GlobalCEFApp.SetCurrentDir := True;
Use these settings before the GlobalCEFApp.StartMainProcess call.

Re: Move CEF library to spesific folder

Posted: Tue Aug 06, 2019 8:01 am
by salvadordf
Hi,

Some files have hardcoded dependencies in Chromium and can't be configured that way :
https://magpcss.org/ceforum/viewtopic.php?f=6&t=14873

I suggest you copy the contents of the Release and Resources folders from the 32 bits binaries to the same folder, let's say "c:\cef32". Do the same with the 64 bits binaries and use "c:\cef64".

Your application would have to use this code :

Code: Select all

  {$IFDEF WIN32}
  GlobalCEFApp.FrameworkDirPath     := 'c:\cef32';
  GlobalCEFApp.ResourcesDirPath     := 'c:\cef32';
  GlobalCEFApp.LocalesDirPath       := 'c:\cef32\locales';
  {$ENDIF}

  {$IFDEF WIN64}
  GlobalCEFApp.FrameworkDirPath     := 'c:\cef64';
  GlobalCEFApp.ResourcesDirPath     := 'c:\cef64';
  GlobalCEFApp.LocalesDirPath       := 'c:\cef64\locales';
  {$ENDIF}