Conditional use of CefSharp if VC++ Redistribuable is installed

9 views
Skip to first unread message

Sebastien

unread,
Feb 10, 2020, 11:16:50 AM2/10/20
to CefSharp
Hi,

I have trouble with using CefSharp. Well not really in fact. CefSharp is well installed ad configured on my application (multi CPU configured) and works very well. It is a winform application and I use CefSharp to display some statistics to my end users that are calculated by a webApi. But it is a very very small part of my app and not all my users have this option.
But the problem is CefSharp use VC++ Redistribuable, and some of my users do not have it installed (and sometimes we cannot install it on the machine because the system administrator does not allow us to do so). But the way is that if I launch my application in this case, it crashed !!!

I have put a verification in the first line of my Program.cs (the first line reading while running the app) to check if VC++ installed or not to disable the option, but I can't reach this point, the application crash before that, while attempting to load CefSharp DLL even if I would not use it.

Is there a way to load conditionnally CefSharp if VC++ is installed or not? Or at least a way to run the application ...

Thanks by advance.
Reply all
Reply to author
Forward
0 new messages