Search code examples
microsoft-edgedelphi-10.4-sydneytedgebrowser

How to use TEdgeComponent with oficial release of Microsoft Edge


Is it possible to use the Delphi 10.4 TEdgeComponent with the official release of Microsoft Edge and WebView2 insted of the Edge Canary channel?

I have installed the oficial release of edge with the latest WebView2 avaiable here https://www.nuget.org/packages/Microsoft.Web.WebView2 and it didn´t work.

The only way I was able to get the sample project to work, was by installing the canary channel version. Which is not a problem talking about the development environment.

But to force the end users to install the canary channel version, is not a good approach.

How to accomplish this task?


Solution

  • You need Delphi 10.4.2. See this Embarcadero video.

    Also have a look at this Embarcadero blog post. It explain how to install the required dependencies.

    And this source code.