Click here to Skip to main content
15,881,882 members
Articles / Operating Systems / Windows

Installing XP SP3 "Access Denied"

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
11 Dec 2009CPOL1 min read 22.1K   10   2
Installing XP SP3 "Access Denied"

I like helping people, but I do not like doing support. It's not really my thing. However, when I get a call from my father… I provide support.

He wasn't able to install Service Pack 3 on his Windows XP computer. I tried it and, after a very lengthy process, received this message: "Access Denied"

I found a link on a Microsoft Web Site which described the error and offered some workarounds to try:

I followed the suggestions but resetting the registry keys did not work (you download and install a tool and then run a command script). The command script tripped up and reported errors on some keys. The keys it gave errors on were deep in the registry: In registry places so deep, dark and remote that even brave men tremble at the mere thought of accessing them. Back to Google…

I found another web site that said Microsoft provided command script to reset the registry keys was incorrect. They posted this script:

cd /d "%ProgramFiles%\Windows Resource Kits\Tools"
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

This script worked and I was able to install XP SP3 on my father's PC. His virus software had expired so I removed it and installed a free one: Avast.  After the install, I had it do a full system scan. It found a few suspect files which I had the anti-virus software delete. It was a happy ending.

I hope someone finds this helpful.

Steve Wellens

This article was originally posted at http://weblogs.asp.net/stevewellens/privaterss.aspx

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
EndWell Software, Inc.
United States United States
I am an independent contractor/consultant working in the Twin Cities area in Minnesota. I work in .Net, Asp.Net, C#, C++, XML, SQL, Windows Forms, HTML, CSS, etc., etc., etc.

Comments and Discussions

 
Generali18n Pin
Rasqual Twilight19-Dec-09 11:56
Rasqual Twilight19-Dec-09 11:56 
GeneralNote Pin
The_Mega_ZZTer1-Apr-09 10:50
The_Mega_ZZTer1-Apr-09 10:50 
subinacl should be used to reset the owner of those items to the Administrators group if you have access denied errors with the provided script, then the provided script will work.

But keep in mind some files and registry entries are purposefully denied access to Administrators (I assume to keep viruses from modifying them) and this script will open them up. This includes System Restore files and some registry security settings.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.