4

So, I'm trying to update Windows 8 to Windows 8.1 via the Windows Store, but every time I attempt to, the update downloads properly, but then I get the error:

Windows 8.1
This app wasn't installed - view details

When I click on it, it says:

Something happened and the Windows 8.1 could not be installed. Please try again. Error code: 0x80070004
Try again Cancel Install

What does this mean? A quick Google search yields nothing.

I have tried rebooting, clearing the store cache, and resetting Windows Update. All Windows Updates were installed. I have tried using a different administrator account, and it does not work.


A quick chkdsk scan shows no errors.


A SFC scan now shows no errors.


I found the error log!

http://pastebin.com/BXZEsejm

Why is the registry corrupt?


DISM Results

Checking System Update Readiness.


Summary:
Operation: Detect and Repair 
Operation result: 0x0
Last Successful Step: Entire operation completes.
Total Detected Corruption:  0
Total Repaired Corruption:  0
    CSI Store Metadata refreshed:   True

Total Operation Time: 1405 seconds.
  • The [0x80070004 error](http://errlookup.azurewebsites.net/?err=0x80070004) is "ERROR_TOO_MANY_OPEN_FILES". Not overly helpful up front. :) What have you tried already? For example: Have you tried restarting and trying the update again? – Ƭᴇcʜιᴇ007 Oct 28 '13 at 00:28
  • It's not be that literal. ;) It's more likely too many open file by that one process (the updater). If you've tried rebooting (you haven't said what you've tried yet), also try [resetting Windows Update](http://support.microsoft.com/kb/971058), and [reset the Store cache](http://www.eightforums.com/tutorials/13133-store-cache-clear-windows-8-a.html). – Ƭᴇcʜιᴇ007 Oct 28 '13 at 00:41
  • @techie007 I have now tried all of those and am still getting the same error. –  Oct 28 '13 at 21:50
  • If you haven't already, do some disk checks. From here on, I suggest you Edit your question and update it to include what you've tried, and what the results were. Hopefully that'll help someone recognize what's going on without suggesting things you've already tried. But that's a weird situation for sure, an di don't have any specific answers. If the disk checks come up clean, it might be worth contacting MS' support about. – Ƭᴇcʜιᴇ007 Oct 28 '13 at 23:01
  • @JeffreyLin have you moved any user profile to other disk rather than default location of `C:/`? If yes most probably this is the culprit in your case as many other user have confirmed this. From [here](http://social.technet.microsoft.com/Forums/sqlserver/en-US/05f77774-f633-444e-82c3-1567517cec67/getting-error-0x80070004-when-i-try-to-install-81?forum=w8itproinstall) and [here](http://www.tomshardware.com/answers/id-1846480/windows-pro-update-fails-install.html#.) – avirk Jan 01 '14 at 04:58
  • @JeffreyLin Also you can try with a reset of your windows 8 or use [this method](http://www.eightforums.com/tutorials/4275-user-profiles-relocate-another-partition-disk.html). Of course you will loose your data and apps if you reset so backup them before doing so. – avirk Jan 01 '14 at 04:59
  • @avirk I had linked `.minecraft` in %APPDATA% to a different partition. After removing that, I still have this error. I don't really want to reset Windows unless I have to. Also, log has been updated. –  Jan 01 '14 at 05:06
  • @JeffreyLin not to remove that folder just link it back there where it should be and that is `c:/` also if it doesn't help you then you have to reset the pc or try 7-8 times as some users reported they have success by that. – avirk Jan 01 '14 at 05:34
  • Do you have a rollback log `$windows.~bt\Sources\Rollback` The problem will be found near the end, uninstall offending app and try upgrade again. – Knuckle-Dragger Jan 01 '14 at 07:13
  • I have gone through the [process of upgrading my XP to win 8](http://reviewofweb.com/windows8/upgrade-windows-xp-to-windows-8/) last week which went pretty smooth. Before you started the upgrade, did you download and installed the updates meant for Windows 8? Not installing those can be one of the reasons why you see the error. Initially, I was not able to locate 8.1 in the store, once I installed all updates for Win 8, 8.1 was available. – Ankur Jain Jan 01 '14 at 12:03
  • From your log, the user `Jeffrey` seems to have a corrupt profile. Try to delete that account (back up any data there first). – kinokijuf Jan 06 '14 at 09:58
  • @avirk the problem is not with moving any individual profile, the problem is with the `Users` directory — it contains quite a few system files and can’t be relocated – kinokijuf Jan 06 '14 at 10:00
  • @kinokijuf System files, you said? Could I pinpoint which? If so, how? –  Jan 06 '14 at 23:19
  • The files in `\Users\Default\AppData\Local\Microsoft\Windows\WinX`, for example. – kinokijuf Jan 07 '14 at 09:46
  • http://social.technet.microsoft.com/Forums/sqlserver/en-US/05f77774-f633-444e-82c3-1567517cec67/getting-error-0x80070004-when-i-try-to-install-81?forum=w8itproinstall – Clarus Jan 07 '14 at 23:04

1 Answers1

4

You seem to have problems in Windows 8. There is no point in trying to upgrade to 8.1 without fixing them first and verifying that "sfc /scannow" passes without errors and also that Windows Update is functional and can fully patch your Windows installation.

Some utilities that could help you check for problems are :

If none of them helps, Do a Repair Install of Windows 8 without Losing Anything.

The next step is to verify if your user profile got corrupted. Follow the instructions in the article How to fix corrupt user profile in windows 8 to create a new administrator profile and see if it can do better than your old account.

If nothing helps, my remaining advice is to look up the article How to refresh, reset, or restore your PC. If the problem is recent, try first to restore to a system restore point that dates from before the problem appeared. If that doesn't help, then try a Refresh, with a Reset as the last possible action. If Reset does not work, reformat the disk and reinstall Windows 8 from DVD or USB.

In all cases, ensure before starting that all your data is safely backed up.


Once "sfc /scannow" and Windows Update pass without errors, follow the steps outlined in the article :
Fix: Your Windows 8.1 install couldn’t be completed error.

In a nutshell, the instructions are to open a Command Prompt as administrator, then enter :

net stop wuauserv
net stop bits

Then browse to the C:\Windows\SoftwareDistribution folder and delete all the files and folders inside (restart if in use).

Then enter the following commands :

net start wuauserv
net start bits

Now open the Windows Store and try the upgrading process all over again.


If you still have errors with the Store, some advice :

  • Disable all security products
  • In Command Prompt (cmd) Run as Administrator, execute WSReset.exe to reset the Store
harrymc
  • 455,459
  • 31
  • 526
  • 924
  • I see that sfc now works, so I added a second part to my answer. Your comments are welcome. – harrymc Jan 06 '14 at 09:51
  • See the article [How to Install Windows 8.1 Update When Missing From Store](http://voices.yahoo.com/how-install-windows-81-update-missing-from-12452995.html). The best advice there is installing KB2871389, but you should do Windows Update for ALL mandatory AND optional updates before attempting 8.1. See also [Why can't I find the update in the Store?](http://windows.microsoft.com/en-us/windows-8/why-can-t-find-update-store). – harrymc Jan 07 '14 at 08:10
  • These are useless, no point. Have you tried the links in my above comment? – harrymc Jan 07 '14 at 22:26
  • I believe the problem started a long time ago. I had created a new user profile for some reason, and then migrated all my user data. I changed the user profile name and then messed with the stuff in the registry. Could this be what is causing the problem? –  Jan 07 '14 at 22:38
  • Probably in c:\windows\setuperr.log, please post if not empty. Have you tried (1) stopping all security products, (2) in cmd run as admin run `WSReset.exe`, (3) another administrator account. See also [this link](http://windows.microsoft.com/en-us/windows-8/update-from-windows-8-tutorial). Have you maybe displaced your user profile from C: to another disk using a symbolic link? – harrymc Jan 08 '14 at 06:54
  • Deleting my user profile did the trick. I was due for a user cleanup anyway, so that's alright. Currently rebooting, this is good. –  Jan 09 '14 at 01:38