May 142008
 


Windows XP SP3 installation may fail with the error code 0×80070005 and/or one of the following errors

Service Pack 3 setup error. Access is denied.

Service Pack 3 setup error. Service Pack installation did not complete

This is very likely a restricted registry permission in the Windows Registry. This could be caused an application like Antivius software which changs the System Access Control lists (SACL) causing this issue.

To quickly identify if it really is a registry permission issue check the

C:\Windows\Svcpack.log (or %windir%\Svcpack.log) for something similar to the following lines

DoInstallation:DoRegistryUpdates failed.
Access is denied.
Message displayed to the user: Access is denied

 

To fix or workaround the problem in installing SP3 would be to do one of the following:

Solution 1. Download the Service Pack 3 file directly from Microsoft Download Center and start the install to see if that helps.

Solution 2. Disable all your programs that doesn’t need be running at startup temporarily (especially your antivirus, antispyware products) and try again

Solution 3. Reset the permissions on the Registry and file by using the Subinacl.exe

Download and install the utility from here

Once installed, try the following:

1. Open notepad and paste the following text into it and save it as a cmd file (say resetperm.cmd:

cd /d “%ProgramFiles%\Windows Resource Kits\Tools”
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose

or download the file Reset Permissions script

2. Run the file resetperm.cmd as an administrator. This should reset the permissions. Now, try to install Windows XP SP3 and all should work OK.

Incoming search terms:

  6 Responses to “Windows XP SP3 install fails with error code 0×80070005”

  1. This webs page was the first hit that I had from Google’s
    error code , SP3, Xp and following the advice given in
    Solution #3, the (re)setting of the acls worked just fine!

    Thanks for the posting and the accuracy of the solution.

    regards,
    Joe C

  2. I was pulling out what little hair I had left…
    Thanks for this excellent info – worked perfectly!

    Only one comment – your “Reset Permissions script” link
    target has been removed.

    Thanks again – Mark

  3. Thanks so much! I also had success with Solution #3.

  4. Excellent, solution 3 scripts worked on 2 computers now.

  5. I still get the error 0×8007005 with Google Update installation after following the steps in solution 3.

  6. all solutions did not work for me..

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>