[英]install cab file (Edge WebView2) via Powershell/cmd
我想使用 cab 文件安装 Edge WebView2 Runtime FixedVersion :Microsoft.WebView2.FixedVersionRuntime.100.0.1185.50.x64.cab
如何通过 Powershell/cmd 使用此 cab 文件安装 WebView2 Runtime?
我试过了
dism.exe /online /add-package /packagepath:"C:\Temp\Microsoft.WebView2.FixedVersionRuntime.100.0.1185.39.x64.cab" /quiet /norestart
我已将文件复制到 C:\Temp 但是当我尝试执行此代码时,它显示“系统找不到指定的文件”
我究竟做错了什么?
BR
您不需要安装 WebView2 运行时固定版本 cab。 您可以将其扩展到您喜欢的任何新文件夹。 要展开固定版本 cab,请运行以下命令:
expand {path to the package} -F:* {path to the destination folder}
所以在你的情况下:
expand C:\Temp\Microsoft.WebView2.FixedVersionRuntime.100.0.1185.39.x64.cab -F:* C:\Temp\
这将生成一个新文件夹C:\Temp\Microsoft.WebView2.FixedVersionRuntime.100.0.1185.39.x64
,其中包含存储在 cab 中的目录结构。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.