1)open cmd as admin
2)Go to C:\Users<Insert Username>\AppData\Local\Packages\ and search name of your broken app (I will search Photos app)
3)Look at folder's name (Microsoft.Windows.Photos)
4)Now you know your app's id. Let's go back to cmd
5)Use this code
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.WRITE APP'S ID HERE).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
It will be like this
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.Windows.Photos).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
6)Press Enter and wait till the command finishes its work.
7)You don't have to reboot. Open your broken app and it will work now
2)Go to C:\Users<Insert Username>\AppData\Local\Packages\ and search name of your broken app (I will search Photos app)
3)Look at folder's name (Microsoft.Windows.Photos)
4)Now you know your app's id. Let's go back to cmd
5)Use this code
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.WRITE APP'S ID HERE).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
It will be like this
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.Windows.Photos).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
6)Press Enter and wait till the command finishes its work.
7)You don't have to reboot. Open your broken app and it will work now