Page 1 of 1

Check CEFLibrary without showing message

Posted: Wed Mar 06, 2024 7:36 pm
by 3vr
Dear.
I would like to know if there is a way to check the dependencies of libraries and files, without showing the message like below.
cef.png
I tried using

Code: Select all

GlobalCEFApp.CheckCEFLibrary
however the message appears. I tried

Code: Select all

GlobalCEFApp.CheckCEFFiles:=False;
It does not show the message, however, it does not check if files are missing.

What is the correct way to perform this verification by code, without displaying a message?

Note: Forgive me if there are any errors in my post, it's my first time. I'm just starting to use the component.

Re: Check CEFLibrary without showing message

Posted: Thu Mar 07, 2024 8:25 am
by salvadordf
Hi,

Set GlobalCEFApp.ShowMessageDlg to False and GlobalCEFApp.CheckCEFFiles to False.

Then call CheckDLLs, CheckResources and CheckLocales with the same parameters that you see in TCefApplicationCore.CheckCEFResources.

After that, you can call GlobalCEFApp.StartMainProcess.

Re: Check CEFLibrary without showing message

Posted: Thu Mar 07, 2024 11:33 am
by 3vr
Thanks a lot for the help. I hadn't seen the ShowMessageDlg option.
It worked by deactivating it.
Thanks ;)