Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

unsupported WebView2Loader.dll 2 days 15 hours ago #19155

  • AlainF
  • AlainF's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
I use the WEBBrowser components and TWVWindowParent
I get the message: "unsupported WebView2Loader.dll version".
if I place the WebView2Loader.dll file in the directory "C:\codetyphon\binRuntimes\x86_64-win64", the program works correctly. This requires me to distribute it with this directory.
I would like to be able to distribute this dll in the program directory and not in "C:\codetyphon\binRuntimes\x86_64-win64".
How to do it?

Please Log in or Create an account to join the conversation.

unsupported WebView2Loader.dll 2 days 12 hours ago #19156

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1270
  • Thank you received: 197
a) Copy WebView2Loader.dll
from 
C:\codetyphon\binRuntimes\x86_64-win64\
to  your exe dir

b) set
initialization
  GlobalWebView2Loader                := TWVLoader.Create(nil);  
  GlobalWebView2Loader.UserDataFolder := UTF8Decode(ExtractFileDir(Application.ExeName) + '\CustomCache');
  GlobalWebView2Loader.StartWebView2;
end. 
or
initialization
  GlobalWebView2Loader                := TWVLoader.Create(nil);  
  GlobalWebView2Loader.LoaderDllPath  := UTF8Decode(ExtractFilePath(Application.EXEName) +DirectorySeparator+ WEBVIEW2LOADERLIB); //<<<<<======
  GlobalWebView2Loader.UserDataFolder := UTF8Decode(ExtractFileDir(Application.ExeName) + '\CustomCache');
  GlobalWebView2Loader.StartWebView2;

end. 

c) Run

Attach is a demo

 
PilotLogic Core Programmer
The following user(s) said Thank You: AlainF

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..
  • Page:
  • 1