Main Forum > General Computer Support
(SOLVED) Win10 apps dead after running Windows Repair
Shane:
Ok I tested it and yes it does break. You will see I get the same results.
Then I ran the full reset repair on it and most of the apps reinstalled fine. But a few failed including the store.
So checking the event log and errors the powershell command that calls windows to reinstall the apps is not correct. It is pointing to folders to older versions that are not there any more.
For each app that failed I checked and you will see in the screen shot the folders where missing. Looks like this is a bug in the newest version of windows build or a bug in the new app version for the ones that failed.
The paths to use to reinstall the apps are kept in the registry, but they are only pointing to old versions. The updated versions are not in there.
So I am going to see if I can manually add those correct paths to the proper versions and then see if the powershell command will install them correctly. Either that or I just run the powershell command to the folders themselves instead of having it look in the registry for the paths.
Shane
Shane:
Yeap thats what it is.
Here is a screen shot of the registry location that the powershell command looks at to know what apps to reinstall. Notice it only has the one windows store version but from the earlier screen shot that folder isnt there and only the newer version is. So it never even runs the install on the newer versions since they are not in the registry.
So now I am manually going to add those missing ones to the registry location and rerun the powershell command and see if it installs them.
Shane
Shane:
Holy Freaking Windows Bug Batman!!
So guess what is causing all of this. The actual powershell command
"Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}"
So I looked at the C:\Program Files\WindowsApps" folder from the copy of windows 10 I had in vmware, it had 97 folders including all the ones that where missing. So I copied them all back over. Then simply ran the powershell command "Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}"
Then I watched, soon the errors started showing up and I watched as the folders where deleted, it removed 12 folders all together and basically each one it had an error on it then deleted the folder. This is a huge bug in windows or the powershell command. I dont know if it is something in powershell or something in the xml files they added in the new app versions, but that powershell command is now very bad to use, but it is the only one I am aware off that would reinstall all the default apps in 8 and 10.
Not sure what to do about this, this isnt a bug in my program, this is a bug in the newest build of Windows.
Shane
rop:
Awright, confirms what I've been doing for a few days :) Registering is f up ...
What about the localization factor, any chance it has to do something with that ? Cortana would not work unless you assign the same language everywhere, I run an english w10 with some french keyboard region, so does that matter ?
On top of this windows store is not working anymore, any idea ?
Shane:
Ok here are some screen shots to show it in action and that it isnt my program.
The first screen shot before.png shows all the 97 folders put back.
The during.png shows the command running from powershell and not my program and you can see the number of items has already started to drop.
The last picture, after.png shows the items went down to 78 and shows one of the needed windows stores folders for installing it is gone.
This is the only known way of reinstalling apps that I am aware of, so this is a big deal that MS has broken this.
Shane
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version