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?
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
- salvadordf
- Posts: 4086
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Move folder with DLL
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 :
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.
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';
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.
Re: Move folder with DLL
Great, everything worked out.
Thank you!
Thank you!