通过 cmdlet 安装任何东西Add-AppxPackage
都会导致错误:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be
registered.
error 0x80040154: Cannot register the request because the following error was
encountered while initializing the windows.capability extension: Class not registered
.
NOTE: For additional information, look for [ActivityId]
66806e04-39e0-0000-bb37-17e40d75d901 in the Event Log or use the command line
Get-AppPackageLog -ActivityID 66806e04-39e0-0000-bb37-17e40d75d901
At line:1 char:1
+ Add-AppxPackage .\Microsoft.VCLibs.x64.14.00.Desktop.appx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\Admin\...00.Desktop.appx:String) [Ad
d-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Comm
ands.AddAppxPackageCommand
我认为此消息表明 appx 包<windows.capability>
在清单 xml 中有一个部分,但相关的处理程序尚未注册。
我该怎么办?我能做什么?