
コマンドレット経由で何かをインストールすると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 にセクションがあるが、関連するハンドラーが登録されていないことを示していると思います。
何をすべきでしょうか?何ができるでしょうか?