Hello!
Edge would close as soon as opened and when I tried to install a 'feature' update I got locked into a temporary account. So:
I used your Windows Repair, in Safe Mode, to fix file and registry permissions. Now Edge opens. (Goodness, though, that Microsoft continues to deeply embed a browser in the OS, despite the EU ruling and despite the problems caused when the program goes wrong!) However: now the 'Store' does not open, though, pre-repair, it did. I do not really care about the Store itself - and I have only a 'local account' - but the problem makes me think the next OS update, which I'll have to have at some point, will fail. (I have not tried that update - the feature update - since doing the repair.)
I suspect the Store problem is (itself) a permissions one. Any advice? Thanks.
Things I've tried to no avail: 'reset'ing the Store; a Powershell command to (I think) 're-register' Store components.
My level of knowledge: semi-advanced amateur (who is better on Linux, where things are easier to fix!).
EDIT: ah, steps 1-5 (inclusive) of this* seem to fix the Store problem! Perhaps you should incorporate those steps into your app (or, if they're in there already, something went wrong).
* Here is the link (for I can't see how to insert it into the post - do you use some sort of markdown? if so, what?):
https://www.techtantri.com/windows-10-apps-not-working-download-apps-folder/