Re: Problem having dynamic CEF path
Posted: Thu Feb 08, 2018 9:31 pm
Hi,
The SimpleBrowser and SimpleBrowser2 demos have all you need to load the CEF libraries from a custom path.
Edit the DPR file and you will see these lines :
Activate those 3 lines and set the directory where you copied the CEF binaries. You can use absolute or relative paths in those properties.
You need to copy the contents of the Release and Resources directories.
Remember that all the executables must be developed for the same CEF binaries version, branch and build number. If you try to run a CEF based application made for a different CEF version/branch/build you may have all kind of problems.
Don't try to use the same cache, cookies or UserDataPath in several executables at the same time. CEF doesn't allow to share those directories with other applications.
The SimpleBrowser and SimpleBrowser2 demos have all you need to load the CEF libraries from a custom path.
Edit the DPR file and you will see these lines :
Code: Select all
GlobalCEFApp.FrameworkDirPath := 'cef';
GlobalCEFApp.ResourcesDirPath := 'cef';
GlobalCEFApp.LocalesDirPath := 'cef\locales';
You need to copy the contents of the Release and Resources directories.
Remember that all the executables must be developed for the same CEF binaries version, branch and build number. If you try to run a CEF based application made for a different CEF version/branch/build you may have all kind of problems.
Don't try to use the same cache, cookies or UserDataPath in several executables at the same time. CEF doesn't allow to share those directories with other applications.