1. Bernhard Stoeter
  2. PowerBuilder
  3. Thursday, 20 June 2024 08:24 AM UTC

Hi,

PB22R3, 3356, new PBVM.DLL (fixed).

Using the webbrowser control fails on Windows 10, 32-Bit. The "Microsoft Edge WebView2-Laufzeit" is installed (German version). The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5} and all subkeys are present.

Starting my app and using the webbrowser control I get the warning "Failed to find requiered WebView2 Runtime" and a link to download it. I did and when I start the "MicrosoftEdgeWebView2RuntimeinstallerX86.exe" I get the hint "... Microsoft Edge WebView2 Runtime is already installed ...".

I'm using WebBrowserSet( "RuntimeMode", "2" )    // EverGreen, then FixedVersion.

My app ist 32-Bit.

What am I missing?

Thanks in advance,

Bernhard

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Friday, 21 June 2024 01:16 AM UTC
  2. PowerBuilder
  3. # 1

Hi Bernhard,

The WebBrowser control works well with WebView2 runtime version 120 on my 32-bit Windows 10 machine. The problem is probably because you are using a low version of WebView2 runtime or it’s not correctly installed. Can you see your WebView2 runtime in Control Panel\Programs\Programs and Features? If not, please try following the steps below to uninstall your current WebView2 runtime and then install a new version of WebView2 runtime, and when you do so, we suggest installing with the 'Run as Administrator' option.

1. Navigate to the path where WebView2 runtime is installed by typing the command below and pressing Enter:
cd C:\Program Files (x86)\Microsoft\EdgeWebView\Application\1*\Installer

2. Type or paste the following command to silent uninstall WebView2 runtime and press Enter:
.\setup.exe --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall

Regards,
Kai

Comment
  1. Bernhard Stoeter
  2. Monday, 24 June 2024 05:56 AM UTC
Thank you but it did not solve my problem.

Bernhard
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 20 June 2024 18:35 PM UTC
  2. PowerBuilder
  3. # 2

Hi Bernhard;

   AFAIK, the default connection to WV2 would be in English. The error (my guess) is that this version is not installed.

  If you only have the German version installed, have you tried this command at App start-up  ...

long ll_Ret
ll_Ret = WebBrowserSet ( "Language", "de" )

Also, FYI ...  http://4umi.com/web/html/languagecodes.php

HTH

Regards ... Chris

Comment
  1. Bernhard Stoeter
  2. Monday, 24 June 2024 06:02 AM UTC
Thank you. Now I'm calling "WebBrowserSet( 'Language', ...) before I call "WebBrowserSet( 'RuntimeMode', ... )". Now it is working.

But: Why occurs this behavoir only on 32-bit machines?

Bernhard
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 24 June 2024 12:49 PM UTC
Hi Berndt;

That's great news!

This setting should also work in 64 bit mode as well as long as your PB app is compiled into the same bitness. If it does not, please open a Support Ticket.

Regards ... Chris
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.