Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error 0x80070002 - register windows.sharedFonts file not found #3194

Closed
viper2pt0 opened this issue Oct 14, 2019 · 15 comments
Closed

error 0x80070002 - register windows.sharedFonts file not found #3194

viper2pt0 opened this issue Oct 14, 2019 · 15 comments
Labels
Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase

Comments

@viper2pt0
Copy link

Environment

Microsoft Windows [Version 10.0.18362.356]

Steps to reproduce

Attempting to install via the Chocolatey package (pre-built msxibundle)

Expected behavior

Install Succeeds

Actual behavior

Install gets to 89% and then fails with the following message:
error 0x80070002: While processing the request, the system failed to register the windows.sharedFonts extension due to the following error: The system cannot find the file specified.

There is no reference to which file it is looking for.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Oct 14, 2019
@DHowett-MSFT
Copy link
Contributor

That's not great. Have you made any changes to your system -- added/removed any components that might be related to fonts, rendering, installation, packages, or the like?

Thanks.

@DHowett-MSFT DHowett-MSFT added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Oct 14, 2019
@viper2pt0
Copy link
Author

Not to my knowledge. Its a corporate managed device, I know the windows store has been disabled/removed. Could that be something?

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Oct 15, 2019
@microsoft microsoft deleted a comment from Maattcc Oct 15, 2019
@DHowett-MSFT
Copy link
Contributor

DHowett-MSFT commented Oct 15, 2019

@Maattcc Thanks for contributing a solution -- it looks like, broadly, asking people to change their partition settings to fix an application deployment issue (because it has the same error code (which is a generic error code) as this issue) is going to cause more harm than good... so I deleted your comment. Sorry!

@DHowett-MSFT
Copy link
Contributor

This seems like a windows store package deployment issue; would you mind filing feedback in the category Install and Update / App installation issues and reproducing the failure?

Thanks!

@DHowett-MSFT DHowett-MSFT added Resolution-External For issues that are outside this codebase and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Attention The core contributors need to come back around and look at this ASAP. labels Oct 23, 2019
@einarhauks
Copy link

I'm also having this issue. Any resolution yet?

@alanwhited-trwd
Copy link

I'm also having this issue, logs attached.
terminal_output.txt
chocolatey.log

@zeusbaba
Copy link

zeusbaba commented Jan 9, 2020

i'm also having this issue with the same error log.
p.s. this is also corporate laptop

@bmaehr
Copy link

bmaehr commented Mar 18, 2020

Solved exactly the same error by installing it NOT as admin.

@yfeos
Copy link

yfeos commented Jun 3, 2020

Hi there,
I'm having this issue too on a corporate laptop : I've tried with and elevated ps prompt (wich use a different account because users haven't administrators rights) with no luck. The same without admin rights ...
At last, i tried while logged on with an administrator account and the installation complete successfully.

Another way is to locate file and manually install it :
dism.exe /online /Add-ProvisionedAppxPackage /PackagePath:"C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\Microsoft.WindowsTerminal_1.0.1401.0_8wekyb3d8bbwe.msixbundle" /SkipLicense

WIN+R and wt

@TBBle
Copy link

TBBle commented Mar 7, 2021

Pinging off #4217 (comment), I have two corporate machines on the same AD, which has a group policy that enforces elevation be run as a separate user, e.g., my_account.privileged, and on those two machines, running in an elevated Windows Powershell session:

Add-AppxPackage -Register 'C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe\AppxManifest.xml'  -DisableDevelopmentMode

one happily installed Windows Terminal to my high-priv account, and one failed with this error.

Since I've installed off Windows Store, I don't have a chocolatey package cache lying around so I cannot use yann-f's solution above (#3194 (comment)). I'm unaware of a Windows Store command-line API, and since I can only get to this account by elevation, I don't think I can run Windows Store on that account unless I log into the computer as the high-priv account (which I'm not going to do).

Did anyone ever lodge this issue to the Windows Store? Since I'm trying to register an already-installed package, not install something off the store, I'm not totally sure they'd accept my feedback as valid.

On the plus side, I have a simple repro-case if there's anything I can capture from Event Viewer etc. to dig into the failure itself.

Some logs
PS C:\WINDOWS\system32> Add-AppxPackage -Register 'C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe\AppxManifest.xml'  -DisableDevelopmentMode
Add-AppxPackage : Deployment failed with HRESULT: 0x80073D19, An error occurred because a user was logged off.
error 0x80070002: While processing the request, the system failed to register the windows.sharedFonts extension due to the following error: The system cannot find the file specified.
.
NOTE: For additional information, look for [ActivityId] bc58546f-1240-0002-33cd-5abc4012d701 in the Event Log or use the command line Get-AppPackageLog -ActivityID bc58546f-1240-0002-33cd-5abc4012d701
At line:1 char:1
+ Add-AppxPackage -Register 'C:\Program Files\WindowsApps\Microsoft.Win ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\Program File...ppxManifest.xml:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

PS C:\WINDOWS\system32> Get-AppxLog

Time                      ID           Message
----                      --           -------
8/03/2021 10:05:46 AM     603          Started deployment Register operation on a package with main parameter AppxManifest.xml and Options 0 and 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
8/03/2021 10:05:46 AM     819          The following packages will be installed: 1527c705-839a-4832-9118-54d4Bd6a0c89_10.0.19041.423_neutral_neutral_cw5n1h2txyewy c5e2524a-ea46-4f67-841f-6a9465d9d515_10.0.19041.423_neutral_neutral_cw5n1h2txyewy E2A4F912-2574-4A75-9BB0-0D023378592B_10.0.19041.423_neutral_neutral_cw5n1h2txyewy
                                       F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.AAD.BrokerPlugin_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.AccountsControl_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.AsyncTextService_10.0.19041.423_neutral_neutral_8wekyb3d8bbwe
                                       Microsoft.BioEnrollment_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.CredDialogHost_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.ECApp_10.0.19041.423_neutral_neutral_8wekyb3d8bbwe Microsoft.LockApp_10.0.19041.423_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.MicrosoftEdgeDevToolsClient_10.0.19041.423_neutral__8wekyb3d8bbwe Microsoft.MicrosoftEdge_44.19041.423.0_neutral__8wekyb3d8bbwe Microsoft.Win32WebViewHost_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.AppRep.ChxApp_10.0.19041.423_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Windows.AssignedAccessLockApp_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.CallingShellApp_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.CapturePicker_10.0.19041.423_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Windows.CloudExperienceHost_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.ContentDeliveryManager_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.NarratorQuickStart_10.0.19041.423_neutral_neutral_8wekyb3d8bbwe
                                       Microsoft.Windows.OOBENetworkCaptivePortal_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.OOBENetworkConnectionFlow_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.ParentalControls_10.0.19041.423_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Windows.PeopleExperienceHost_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.PinningConfirmationDialog_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.Search_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.SecHealthUI_10.0.19041.423_neutral__cw5n1h2txyewy
                                       Microsoft.Windows.SecureAssessmentBrowser_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.ShellExperienceHost_10.0.19041.610_neutral_neutral_cw5n1h2txyewy Microsoft.Windows.StartMenuExperienceHost_10.0.19041.610_neutral_neutral_cw5n1h2txyewy
                                       Microsoft.Windows.XGpuEjectDialog_10.0.19041.423_neutral_neutral_cw5n1h2txyewy Microsoft.XboxGameCallableUI_10.0.19041.423_neutral_neutral_cw5n1h2txyewy MicrosoftWindows.Client.CBS_120.2212.551.0_neutral_neutral_cw5n1h2txyewy MicrosoftWindows.UndockedDevKit_10.0.19041.423_neutral_neutral_cw5n1h2txyewy
                                       NcsiUwpApp_10.0.19041.423_neutral_neutral_8wekyb3d8bbwe Windows.CBSPreview_10.0.19041.423_neutral_neutral_cw5n1h2txyewy windows.immersivecontrolpanel_10.0.2.1000_neutral_neutral_cw5n1h2txyewy Windows.PrintDialog_6.2.1.0_neutral_neutral_cw5n1h2txyewy . The following packages will be removed: NULL
8/03/2021 10:05:46 AM     10002        Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\ec9e36b0-94ad-4bd2-a069-8893350aa82d_S-1-5-21-125588297-3509485221-1345772379-124099_1.rslc for Register Operation on Package Microsoft.WindowsTerminal_2021.226.1915.0_neutral_~_8wekyb3d8bbwe.
8/03/2021 10:05:46 AM     607          Deployment Register operation on package Microsoft.WindowsTerminal_2021.226.1915.0_neutral_~_8wekyb3d8bbwe has been de-queued and is running for user SID S-1-5-21-125588297-3509485221-1345772379-124099.
8/03/2021 10:05:46 AM     614          Bundle Uri C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_2021.226.1915.0_neutral_~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml contains packages: "CascadiaPackage_1.6.10571.0_x64.msix": Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe "CascadiaPackage_1.6.10571.0_x86.msix":
                                       Microsoft.WindowsTerminal_1.6.10571.0_x86__8wekyb3d8bbwe "CascadiaPackage_1.6.10571.0_ARM64.msix": Microsoft.WindowsTerminal_1.6.10571.0_arm64__8wekyb3d8bbwe.
8/03/2021 10:05:46 AM     854          Successfully added the following uri(s) to be processed:  C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_2021.226.1915.0_neutral_~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe\AppxManifest.xml.
8/03/2021 10:05:46 AM     855          Finished resolving action lists. DeploymentRequest action lists: addPackageList: Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe Microsoft.WindowsTerminal_2021.226.1915.0_neutral_~_8wekyb3d8bbwe.
8/03/2021 10:05:46 AM     573          Setting Sync Enabled status, package family name Microsoft.WindowsTerminal_8wekyb3d8bbwe, enabled false.
8/03/2021 10:05:46 AM     10000        About to service package Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe. Setting the package state to disabled returned with 0x0.
8/03/2021 10:05:47 AM     8100         Starting validation and setting the Trust Label on package Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe with flags 0x9.
8/03/2021 10:05:47 AM     8106         Package Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe has Trust Label already. Flags: 0x9
8/03/2021 10:05:47 AM     8101         Finished validation and setting the Trust Label on package Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe with flags 0x9.
8/03/2021 10:05:47 AM     306          error 0x80070002: While processing the request, the system failed to register the windows.sharedFonts extension due to the following error: The system cannot find the file specified.
                                       .
8/03/2021 10:05:47 AM     316          error 0x80070002: Cannot register the request because the following error was encountered during the registration of the windows.sharedFonts extension: The system cannot find the file specified.
                                       .
8/03/2021 10:05:47 AM     5507         Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe\microsoft.system.package.metadata\S-1-5-21-125588297-3509485221-1345772379-124099-MergedResources-*.pri : No user-specific merged files found
8/03/2021 10:05:47 AM     5507         Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe\microsoft.system.package.metadata\Resources.????????.pri : No shared merged files found
8/03/2021 10:05:47 AM     5507         Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe\microsoft.system.package.metadata\S-1-5-21-125588297-3509485221-1345772379-124099-MergedResources-*.pri : No user-specific merged files found
8/03/2021 10:05:47 AM     5507         Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe : C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe\microsoft.system.package.metadata\Resources.????????.pri : No shared merged files found
8/03/2021 10:05:47 AM     300          error 0x80073CF6: Cannot register the Microsoft.WindowsTerminal_8wekyb3d8bbwe package due to the following error: Package could not be registered.
                                       .
8/03/2021 10:05:47 AM     605          The last successful state reached was SingletonRegisterAdd. Failure occurred before reaching the next state RegistrationChanged. hr: 0x80073CF6
8/03/2021 10:05:47 AM     330          error 0x80070002: While removing the request, the system failed to de-register the windows.MRT extension due to the following error: The system cannot find the file specified.
                                       .
8/03/2021 10:05:47 AM     7750         warning 0x80070005: The following error occurred while performing Indexed DB cleanup when removing the package: AppxManifest.xml (Access is denied.
                                       ).
8/03/2021 10:05:47 AM     330          error 0x80070005: While removing the request, the system failed to de-register the windows.indexedDB extension due to the following error: Access is denied.
                                       .
8/03/2021 10:05:47 AM     10001        Finished servicing package Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe. Setting the package state to enabled returned with 0x0.
8/03/2021 10:05:47 AM     10001        Finished servicing package Microsoft.WindowsTerminal_1.6.10571.0_x64__8wekyb3d8bbwe. Setting the package state to enabled returned with 0x0.
8/03/2021 10:05:47 AM     401          Deployment Register operation with target volume C: on Package Microsoft.WindowsTerminal_2021.226.1915.0_neutral_~_8wekyb3d8bbwe from:  (AppxBundleManifest.xml)  failed with error 0x80073D19. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
8/03/2021 10:05:47 AM     404          AppX Deployment operation failed for package Microsoft.WindowsTerminal_2021.226.1915.0_neutral_~_8wekyb3d8bbwe with error 0x80073D19. The specific error text for this failure is: error 0x80070002: While processing the request, the system failed to register the windows.sharedFonts extension due to the following error: The
                                       system cannot find the file specified.
                                       .
8/03/2021 10:05:47 AM     471          error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\Microsoft.RemoteDesktop_10.2.1807.0_x64__8wekyb3d8bbwe62b3c3b3-b463-4386-a4f4-5ece67f11d76\clrcompression.dll failed.
8/03/2021 10:05:47 AM     471          error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\Microsoft.YourPhone_1.21011.127.0_x64__8wekyb3d8bbwe7c45f46d-53d6-4cf2-9457-0ac51fec5829\clrcompression.dll failed.
8/03/2021 10:05:47 AM     471          error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\Microsoft.YourPhone_1.21011.127.0_x64__8wekyb3d8bbwe7c45f46d-53d6-4cf2-9457-0ac51fec5829\RuntimeConfiguration.dll failed.

@MrDaGree
Copy link

For those that use Chocolatey and have the same issue I found that changing the last line of the upstream package from Add-AppxPackage to DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$fileName /SkipLicense and updating the uninstall to Get-AppxProvisionedPackage -online | where-object {$_.packagename -like "*WindowsTerminal*"} | Remove-AppxProvisionedPackage -online -allusers fixed my issues

@spotlight2001
Copy link

spotlight2001 commented Jan 30, 2023

@MrDaGree I do have the same problem. Where can I find the file to be edited?

disclaimer: I am a choco n00b

@draeath
Copy link

draeath commented Feb 8, 2023

We have a user who's running into this as well and we've no idea how to apply this fix either, @MrDaGree

It would be very helpful if you could suggest how one would go about "changing the last line of the upstream package."

@MrDaGree
Copy link

MrDaGree commented Feb 8, 2023

@spotlight2001 @draeath it was requiring changing the chocolatey install script and repackaging it. It was only possible if you have a custom repo

@TheMcSebi
Copy link

Solved exactly the same error by installing it NOT as admin.

Solved the issue for me as well.
Using a corporate device with LTSC 21H2 and no store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase
Projects
None yet
Development

No branches or pull requests