Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install cab file (Edge WebView2) via Powershell/cmd

I want to install Edge WebView2 Runtime FixedVersion with a cab file: Microsoft.WebView2.FixedVersionRuntime.100.0.1185.50.x64.cab

How can I install WebView2 Runtime with this cab file via Powershell/cmd?

I've tried

dism.exe /online /add-package /packagepath:"C:\Temp\Microsoft.WebView2.FixedVersionRuntime.100.0.1185.39.x64.cab" /quiet /norestart 

I've copied the file to C:\Temp but when I try to execude this code, it says "the system cannot find the file specified"

What am I doing wrong?

BR

like image 498
user18209625 Avatar asked Oct 19 '25 14:10

user18209625


1 Answers

You do not need to install a WebView2 Runtime Fixed Version cab. You can just expand it to any new folder you like. To expand a Fixed Version cab you run the following:

expand {path to the package} -F:* {path to the destination folder}

So in your case:

expand C:\Temp\Microsoft.WebView2.FixedVersionRuntime.100.0.1185.39.x64.cab -F:* C:\Temp\

This will result in a new folder C:\Temp\Microsoft.WebView2.FixedVersionRuntime.100.0.1185.39.x64 containing the directory structure stored in the cab.

See Details about the Fixed Version runtime distribution mode.

like image 195
David Risney Avatar answered Oct 21 '25 04:10

David Risney



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!