I followed the advice presented in this post https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_store/fix-andor-reinstall-windows-store/535578bf-4c83-4c55-bd61-f023aad63a39: Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} to try to restore the Windows Store on my Win 10 22H2 PC.
Following that step I receive the following error message:
Add-AppxPackage : Cannot find path 'C:\AppXManifest.xml' because it does not exist. I checked that AppXManifest.xml is in the WindowsStore folder within WindowsApps but it certainly is not found at the root of C:\.
I then found this post: https://www.download3k.com/articles/How-to-Restore-the-Store-App-in-Windows-10-After-Removing-it-01404 and followed its Step 1, with the following result:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF9, Install failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CF9)
Rejecting a request to register from AppxBundleManifest.xml because the manifest is not in the package root.
NOTE: For additional information, look for [ActivityId] b7ece08c-3f45-0002-e202-eeb7453fdb01 in the Event Log or use
the command line Get-AppPackageLog -ActivityID b7ece08c-3f45-0002-e202-eeb7453fdb01
At line:1 char:1
+ Add-AppxPackage -DisableDevelopmentMode -Register "C:\Program Files\W ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Program File...ppxManifest.xml:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
I then decided to try to Repair Install, following these instructions: https://answers.microsoft.com/en-us/windows/forum/all/how-to-perform-a-repair-upgrade-using-the-windows/35160fbe-9352-4e70-9887-f40096ec3085, created the Windows.iso, mounted it, ran it and saw the error message:
You cannot install Windows on a USB flash drive using Set-up. I wasn't using a flash drive (there wasn't one even plugged into my computer) but I cannot get any further!
Any and all advice very gratefully received!
Jeff