自上次更新以来,我的 Windows 应用商店已消失。我发现这些说明重新安装它,但是当我运行脚本时出现此错误:
Add-AppxPackage: Cannot find path 'C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.255.4.0_neutral_~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml' because it does not exist.
At C:\USERS\[USERNAME]\desktop\reinstall-preinstalledApps.ps1:35 char:2
+ Add-AppxPackage -register $PackagePath -DisableDevelopmentMode
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo :ObjectNotFound: (C:\Program File...dleManifest.xml:String) [Add-AppxPackage], ItemNotFoundException
+ FullyQualifiedErrorId: PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
显然,更新不再使用该文件夹,因为取而代之的是一个名为“Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe”的文件夹。但是,该文件夹不包含名为 AppxBundleManifest.xml 的文件,AppxMetadata 文件夹中唯一的内容是名为 CodeIntegrity.cat 的文件
然后我发现这一页并运行如下命令:
Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode
这导致了某种合并错误:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered. Merge Failure : error 0x80070003 : Cannot register the Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe package because there was a merge failure with the following file: C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.25.5.0_neutral_split.scale-100_8wekyb3d8bbwe\resources.pri NOTE: For additional information, look for [ActivityId] 5e87878d-3da6-0000-9f00-895ea63dd101 in the Event Log or use the command line Get-AppxLog -ActivityID 5e87878d-3da6-0000-9f00-895ea63dd101 At line:1 char:1
+ Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.Win ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Program File...ppxManifest.xml:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
命令 Get-AppxLog -ActivityID 5e87878d-3da6-0000-9f00-895ea63dd101 给出如下结果:
Time ID Message
---- -- -------
12/24/2015 10:46:45 AM 301 The calling process is powershell.exe
12/24/2015 10:46:45 AM 603 Started deployment Register operation on a package with main parameter: AppxManifest.xml and Options: 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing
app deployment issues.
12/24/2015 10:46:45 AM 10002 Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\a0173705-8c56-45bb-a57f-3ec254fc1508_S-1-5-21-881075586-1145924869-2759436506-1000_1.rslc for Register
Operation on Package Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe.
12/24/2015 10:46:45 AM 607 Deployment Register operation on package Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe has been de-queued and is running for user LIONGATE1\Robert B. Miller.
12/24/2015 10:46:45 AM 613 Adding uri to the list of Uris: C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe\AppxManifest.xml.
12/24/2015 10:46:45 AM 561 Not staging roaming data for package Microsoft.WindowsStore_8wekyb3d8bbwe. The application state is already present.
12/24/2015 10:46:45 AM 10000 About to service package Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe. Setting the package state to disabled returned with 0x0.
12/24/2015 10:46:45 AM 827 Capability parsing started for the package Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe
12/24/2015 10:46:45 AM 5502 Merge Failure : error 0x80070003 : Cannot register the Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe package because there was a merge failure with the following file:
C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.25.5.0_neutral_split.scale-100_8wekyb3d8bbwe\resources.pri
12/24/2015 10:46:46 AM 303 error 0x80070003: While preparing to process the request, the system failed to register the windows.MRT extension due to the following error: The system cannot find the path
specified.
.
12/24/2015 10:46:46 AM 300 error 0x80070003: Cannot register the Microsoft.WindowsStore_8wekyb3d8bbwe package due to the following error: The system cannot find the path specified.
.
12/24/2015 10:46:46 AM 605 The last successful state reached was ResolvedDeferredRegistrations. Failure occurred before reaching the next state RegistrationChanged.
12/24/2015 10:46:46 AM 10001 Finished servicing package Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe. Setting the package state to enabled returned with 0x0.
12/24/2015 10:46:46 AM 401 Deployment Register operation with target volume C: on Package Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe from: (AppxManifest.xml) failed with error 0x80073CF6.
See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
12/24/2015 10:46:46 AM 404 AppX Deployment operation failed for package Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe with error 0x80073CF6. The specific error text for this failure is: Merge
Failure : error 0x80070003 : Cannot register the Microsoft.WindowsStore_2015.25.5.0_x64__8wekyb3d8bbwe package because there was a merge failure with the following file:
C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.25.5.0_neutral_split.scale-100_8wekyb3d8bbwe\resources.pri
我检查了一下,文件夹 C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.25.5.0_neutral_split.scale-100_8wekyb3d8bbwe\ 不存在。
我该如何解决这个错误?
答案1
为了解决这个问题,我使用保留文件和应用程序的选项从 DVD 重新运行了版本 1511“十一月更新”。这修复了 Windows Store 的问题。