user18209625
user18209625

Reputation: 189

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

Upvotes: 2

Views: 10717

Answers (1)

David Risney
David Risney

Reputation: 4377

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.

Upvotes: 2

Related Questions