I ran into an interesting error this week. I was trying to install free apps from the Windows Store on my 8.1 system (this issue affects Windows 8.0 systems, too) and it would always fail, giving me a standard-seeming Windows error code: 0x8007064A.
Note: There are lots of other reasons why Windows Store apps will fail to install; this happens to be one of the more obscure and undocumented.
The first thing I did was to look up the error code, and I found it was ERROR_BAD_CONFIGURATION. At first, it occurred to me that maybe there was an error with the store (not likely, but possible), my communications link to the store (very possible, my internet service has been awful, lately), or something was wrong with my machine (also very likely because I had just gone through a round of forced hardware changes due to an electrical storm). To narrow down the problem, I tried to install a different app from the store, and I got the same error code. OK, this is looking like a problem with either my internet connection or my machine.
Next, I decided to search the web, thinking that somebody had to have run across this before. I couldn’t find anything. Hmm. I searched in earnest on the Microsoft web site and found the MSDN article “Troubleshooting packaging, deployment, and query of Windows Store apps.” “Awesome!” I thought to myself, “here is a list of error codes and troubleshooting tips, that I can use to solve my problem.”
Yeah, not so much. While there is a lot of good information on that page, my particular error code isn’t listed. Bummer.
So, to make a long story short, here’s how to fix the problem. This particular error is caused by the ownership of a specific registry key not being set to SYSTEM. The key in question is:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\ Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages
I have no idea how the ownership on this key was changed. Presumably it was some third-party software, but it could have been me when I was exploring all the changes Win8 made to the registry.
In any event, to set the ownership of the key back to SYSTEM:
- Navigate to that key in RegEdit
- Right-click on the key, select Permissions from the context menu
- On the Permissions dialog box press the Advanced button near the lower-right corner, and a new Advanced Security Settings dialog box will appear. At the top of the dialog box the owner is listed. If it is not SYSTEM, then this is your problem.
- Next to the owner name is a blue link labeled “Change”. Click on Change, and another dialog box appears. In the large open area labeled “Enter the object name to select”, type SYSTEM, and then click on OK, and OK on all of the rest of the dialog boxes.
At this point, you should be able to install apps from the store.