Unable to reinstall Microsoft Store

Solved
Hello,

Since my Microsoft Store was no longer working, I wanted to uninstall it and I managed to uninstall everything.

The problem is when I go into PowerShell and do the manipulation to reinstall Microsoft Store, it doesn't work

Get-AppxPackage *Microsoft.WindowsStore* | Remove-AppxPackage

Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

It writes all this without me being able to actually install it (see Photo link)
If there is any possibility of not doing a reset because I don't want to lose all the applications on my PC

Photo Link: https://image.noelshack.com/fichiers/2019/45/5/1573224099-annotation-2019-11-08-153137.jpg

Thank you in advance for your responses.

Thanks.

19 answers