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.

Move folder with DLL

Post Reply
Vaytl
Posts: 22
Joined: Tue Jan 04, 2022 12:52 pm

Move folder with DLL

Post by Vaytl »

Greetings, Salvador.
Is it possible to move all resources and DLLs on Windows to a single folder, for example, "c:\cef-32", so that the browser can function from any location on the computer?
How do I set up all the paths to these files?
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Move folder with DLL

Post by salvadordf »

Hi,

Yes. It's possible to use a custom directory for the CEF binaries.

Add these code lines before the GlobalCEFApp.StarMainProcess call in the DPR file :

Code: Select all

  GlobalCEFApp.FrameworkDirPath     := 'c:\cef';
  GlobalCEFApp.ResourcesDirPath     := 'c:\cef';
  GlobalCEFApp.LocalesDirPath       := 'c:\cef\locales';
Replace "c:\cef" for any other directory but keep the locales in a subdirectory.
If you use a different executable for the CEF subprocesses you'll have to add these lines to both executables.
Avoid using network folders. If necesssary, copy the CEF binaries to a temporal local folder before initializing CEF.
Vaytl
Posts: 22
Joined: Tue Jan 04, 2022 12:52 pm

Re: Move folder with DLL

Post by Vaytl »

Great, everything worked out.
Thank you!
Post Reply