Winetricks / winetricks

Winetricks is an easy way to work around problems in Wine
GNU Lesser General Public License v2.1
2.81k stars 406 forks source link

Easy install of webview2 #1986

Open qarmin opened 1 year ago

qarmin commented 1 year ago

Some apps require webview2 and I found that there is no way to do it via winetricks

Download link - https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section

austin987 commented 1 year ago

Do you have a sample application that needs this? Even better if you have a sample application to test and a PR to add the dll ;)

Gubbins commented 1 year ago

I was able to get a certain way through the installation process by using winetricks to install .Net 472, but webview2 installation still failed.

The application I'm attempting to run is Zwift (free download and the issue can be reproduced without needing to open an account) https://www.zwift.com/eu/download . The first thing it does when launched is use webview2 to open a login window. Sorry it's not a simple sample application.

Barracuda72 commented 1 year ago

Another example of such an app is a launcher of an upcoming game "Snowbreak: Containment Zone": https://snowbreak-content.amazingseasuncdn.com/ob202307/launcher/seasun/setup/Snow_Setup.exe

In fact, many new games (and their launchers) require WebView2. WineDB lists it as a "Platinum" for some reason, but I wasn't able to even install it, sadly.

Barracuda72 commented 1 year ago

I was able to install version 91.0.864.59 from the Web Archive:

https://web.archive.org/web/20210626091814/https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/ee4e97c1-89a3-456f-b9f3-f29651316b7e/MicrosoftEdgeWebView2RuntimeInstallerX64.exe

However, it's too old to run the game in question. I wasn't able to find a newer installer build besides the latest one (114.x.x.x), which doesn't work.

I've tried to substitute files from "FixedBuild" version archive and the latest version I was able to use was 105.0.1343.25 (https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/fbf928f5-dd43-4f7f-94ed-75cc22fc8141/Microsoft.WebView2.FixedVersionRuntime.105.0.1343.25.x64.cab). Newer ones either crash the game instantly or don't show the window displaying in the console "WebVie2w process crashed". This approach requires modifying a registry but allows the game launcher to run.

Sadly, only sound works, nothing is displayed...

UPD: all tested versions from 95.0.1020.53 to 105.0.1343.25 seem to be good to go.

markus1189 commented 1 year ago

@Barracuda72 thank you for the tip from the Web Archive! This finally allowed me to find an installable version of Edge WebView2 and run Zwift :tada:

Nick768 commented 9 months ago

Are there any news in this topic? I think the same could apply to Adobe products and Microsoft Office as well. And if you are searching for older versions of WebView2, try this repo: https://github.com/westinyang/WebView2RuntimeArchive

Another question: I tried to install one of these .cab files. How did you do this @Barracuda72? It couldn't even install it on real Windows...

txomon commented 9 months ago

Do you have a sample application that needs this?

If you need another example, pcon planner => https://pcon-planner.com/

pegasusearl commented 4 months ago

Adding another example: Project Duck's Launcher (the game can launch just fine, but the launcher is the problem because it needs this webview2)

The executable is very tiny relatively small, no installation required (to test webview2), and it's free.