The last updates to CEF4Delphi included several improvements made by Alexey Shumkin :
- Added TCEFApplication.CheckDevToolsResources to skip the devtools_resources.pak file while checking that all the CEF binaries are in place.
- Added TCEFApplication.LocalesRequired to indicate which laguages are supported. This allows you to skip any number of pak files in the locales folder while checking that all the CEF binaries are in place.
- Added TCEFApplication.SetCurrentDir to set the current working directory while loading the DLLs. This is necessary when you call your app from another app in a different directory.
- Added TCEFApplication.ShowMessageDlg to hide message dialogs in case there's a problem with the CEF binaries. This is needed to include CEF4Delphi in ActiveX components.
Let me be clear : This is NOT the recommended way to add Flash support to your app. In fact, Adobe urges you to use the Flash installer and you should let it update the plugin automatically for security reasons.
CEF3 included a custom parameter to specify the Flash DLL file name but each plugin version has a different DLL name, so I decided to add this new property that only needs the path where the Flash DLL is located.
CEF4Delphi will identify the Flash DLL and it will load the plugin, ignoring the one that is already installed in the system.
If you decide to use this property you have to copy the Flash plugin files to the path indicated in TCEFApplication.CustomFlashPath.
Those files are located in these directories :
- 32 bit -> c:\windows\system32\macromed\flash
- 64 bit -> c:\windows\syswow64\macromed\flash