Problem restoring the Windows Store

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

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

Hi Jeff,
I'm Sumit, here to answer your query at the Microsoft Community.

Apologies for any inconvenience you are experiencing. I am happy to help you today.

We need to fix the following as a repair install the common fix for this which is reliable.

>>You cannot install Windows on a USB flash drive using Set-up.


Please execute the command below and reboot your computer afterwards, and try again. I believe this should do the trick.

In the Windows search,

type cmd, right-click it, and choose run as administrator.

reg add "HKLM\SYSTEM\CurrentControlSet\Control" /v PortableOperatingSystem /t REG_DWORD /d 0 /f

I look forward to your response and am eager to collaborate until we find a solution.
Sumit

Working on IST
Always include PC Specifications with the problem. Additionally, ensure all the latest quality updates have been installed.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Sumit,

Many thanks for this! Your suggestion did, indeed, resolve the "You cannot install Windows on a USB flash drive using Set-up." error.

Unfortunately a new problem has now appeared! Following what seemed to be a successful Repair Install, right at the end of the process, following a reboot, this message appeared:

We couldn't install Windows 10. We've set your PC back to the way it was just before you started installing Windows 10. 0xC1900101 - 0x20017. The installation failed in the SAFE_OS phase with an error during BOOT operation.

I am about to look at the suggested Troubleshooting tips but would welcome any additional advice you can offer.

Jeff

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thanks, Jeff. I can assist you on this as well.

Please supply us the following Information.

Right-click the Start button and Choose the Run option

Type in msinfo32
Press enter.

Take a screenshot of the System Summary window and post it in the next reply.

I look forward to your response and am eager to collaborate until we find a solution.
Sumit

Working on IST
Always include PC Specifications with the problem. Additionally, ensure all the latest quality updates have been installed.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Sumit,

Many thanks for staying with me on this!

Herewith the requested screenshot:

Image

In the meantime, having read the Troubleshooting tips on the error screen I noted the comment about removing external USB devices. I have 3 external USB drives so removed them before trying the install again, but still no success and the same error message at the end. (In addition to which one of those drives now has a new drive letter, L:\, and its "old" one, F:\, has been allocated by Windows to one which seems to be related to the backup of my old Windows installation but which I cannot access to change its drive letter so that I may ahve the F:\ label on the drive I want it! I will resolve this somehow!)

Thanks again for your support!

Jeff

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thanks Jeff. Some disappointing news here. Usually 20017 is caused due to Outdated BIOS. I see that it is fully updated as of now.

Let us fix the drive letter thing later on.


Let us check the Installation log to find why the update failed. Please share the following logs. Please paste the Path in Run directly as the folders may be hidden(Win+R).

The Panther logs. Files named Setupact.log and Setuperr.log from the following path:
C:\$Windows.~BT\Sources\Panther

The Rollback logs: These usually are created if Windows Update rolls back. Files named Setupact.log and Setuperr.log from the following path C:\$Windows.~BT\Sources\Rollback

[Only if the error code is 0xC1900101-0x30018] The Device Install Log from C:/$Windows.~bt\Sources\Rollback\setupapi\setupapi.dev.log

[Only if the error code is 0xC1900101-20017] Setupact.log and Setuperr.log in %windir%\Panther

Troubleshoot Feature update Installation failures
https://answers.microsoft.com/en-us/windows/for...

To upload files here, see the following article. You must copy the logs to the desktop first and then upload them.

How to share diagnostic files/logs on the Microsoft community
https://answers.microsoft.com/en-us/feedback/fo...

As the log size might be large consider zipping everything before uploading.
Sumit

Working on IST
Always include PC Specifications with the problem. Additionally, ensure all the latest quality updates have been installed.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Summit,

Thanks again!

I have fixed the drive letter problem so nothing more to do there!

I have zipped the requested log files and will sort out posting them later today - I have to go out now - but the ones requested at C:/$Windows.~bt\Sources\Rollback\setupapi\setupapi.dev.log and Setupact.log and Setuperr.log in %windir%\Panther don't exist, sorry! In the case of the former I will post the files from that directory which were created today, hopefully they will be useful!

Jeff

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thank you. No worries - some files will not be there, which is normal. Please keep us posted.
Sumit

Working on IST
Always include PC Specifications with the problem. Additionally, ensure all the latest quality updates have been installed.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi again,

Link for the zipped files: Logs for Support.7z. Link expires Wednesday November 27th.

Thanks again!

Jeff

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thanks, Jeff.

I see the BCD failed.

Please open the Windows Recovery environment using either of the steps below:

On the Lock Screen, Press and hold the Shift key. Then, click the restart button on the lock screen located at the bottom right situated in the Power menu, to open the Windows Recovery options.

If you cannot reach the Lock screen or start your computer, restart your PC two times when the boot screen is shown. If your PC has no restart button, press and hold the Power button until the computer shuts down. Do this twice.

On the third time, windows should open Windows Recovery options automatically.

Next,

Via

https://www.sysnative.com/forums/threads/upgrad...

Please create a backup of your system if you haven't done so already, open a command prompt from the Windows Recovery (Windows RE) environment using the Windows USB/DVD you created earlier:


diskpart - Opens the Disk Partitionning tool
select disk 0 - Will select your first hard drive (the one with the Windows partition on it)

list volume - Note the number of the partition that have no drive letter assigned to it, is of 260MB of size and have "FAT32" listed under the "FS" column

select volume X - X will be the number of your partition with a size of 260MB, the EFI System Partition one that you identified in the last command

assign letter=Z: - It'll assign the Z: letter to the EFI System Partition

exit - To exit the diskpart utility

Now you'll be back in the command prompt, enter the following commands:

cd /d Z:\EFI\Microsoft\Boot - Goes to the "Boot" directory in the Z: partition

attrib Z:\EFI\Microsoft\Boot\BCD -h -r -s

- Removes the hidden, read-only and system attributes from the BCD folder
ren Z:\EFI\Microsoft\Boot\BCD BCD.old

- Renamed the BCD folder to BCD.old
bootrec /rebuildbcd

- This command will rebuild the BCD.

When it asks you Add the installation to boot list?, press on y followed by Enter and if it succeed, you'll have a The operation completed successfully message. Once you're done, close the command prompt, restart your computer and try to upgrade again.

Good luck!


Disclaimer:
The link included is a non-Microsoft website that would provide accurate and safe information. Watch out for ads on the site that are frequently classified as PUP (Potentially Unwanted Products). There is no need to buy paid products to fix your computers as they sometimes do more harm than good.
Sumit

Working on IST
Always include PC Specifications with the problem. Additionally, ensure all the latest quality updates have been installed.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Sumit,

Thanks for this very detailed process. Unfortunately, it fails on my system!

I use Macrium Reflect X Home on a regular basis but decided to first create a new full back up of my main system drive. I then followed the instructions to access the FAT32 partition, but, as you will see, the only one I have is much less than 260MB. However, I did assign this the drive letter M:\, since the suggested Z:\ is already in use on my system (for the drive dedicated to saving backups).

This is a screenshot of the incomplete process, using Windows PowerShell (as admin). I "selected disk 3" since this is what Windows Disk Management tells me the disk is registered as!

Image

Any further advice you can offer would be very gratefully received!

As of now it seems the BCD error is becoming very problematic; I can boot my computer ONLY by having the Windows Installation DVD in my BD-ROM drive. Restart closes the computer but fails to restart it and I cannot access Safe Mode at all! I also had a check of this page, https://www.lifewire.com/how-to-rebuild-the-bcd-in-windows-2624508, but again, the suggested methods did not work for me!

This is rapidly becoming very worrying!

Jeff

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

 
 

Question Info


Last updated April 20, 2025 Views 98 Applies to: