Windows registry problem when installing SP2 on Windows XP

kell, Wed Apr 12 2006, 09:58PM

I am trying to install service pack 2 on a computer that had a recovery operation using the disc that came with it (a three-year-old Toshiba laptop).
Here I'll paste the text of a query I posted on the microsoft windows update newsgroup:
> After failed sp2 install, looked in setupapi log
> HKLM\Software\Microsoft\InternetExplorer\MAIN\Feat ureControl\FEATURE_DISABLE_MK_PROTOCOL
> said Access denied, so I went into regedit and saw that Feature Control
> is missing under the "...MAIN" folder. There are two files there, and
> Feature Control is not one of them.
> There are two other "Access denied" error messages in setupapi:
> [Product.Add.Reg] in "c:\d11d8fa80d462c219324\i386\update\update.inf"
> failed
> and [ProductInstall.GlobalRegistryChanges.Install] at the same
> location, also failed
> What do I do about the missing registry item? And what do the other
> two errors mean?

So, I'd appreciate any help from windows gurus.
Re: Windows registry problem when installing SP2 on Windows XP
Carbon_Rod, Thu Apr 13 2006, 02:58AM

From te google cache ( Link2
);
"Cause:
The administrative user's permission on several registry keys are incorrectly
set and SP2 thinks it doesn't have access to modify the values in several
registry keys. In reality, the registry keys can be modified by the
administrative user, even though the registry key permissions are configured
improperly (Administrators is set to READ). I believe the registry key
permission problem is cause by a faulty MDAC 2.8 installation (prior to
installing SP2). As you may know, part of the SP2 installation process
installs MDAC 2.8 which is when the SP2 installation failure occurs."

Hmmmm... =p
Re: Windows registry problem when installing SP2 on Windows XP
Desmogod, Thu Apr 13 2006, 01:36PM

When you say "recovery operation", do you mean a complete re-install, formatting the drive etc, or is it a repair situation, where you overwrite windows and keep all the info on a PC?
Windows really does not like to be re-installed or upgraded, and falls over at the slightest chance.
Re: Windows registry problem when installing SP2 on Windows XP
kell, Thu Apr 13 2006, 01:39PM

Here's a better explanation that should clarify what happened to my computer:
I posted about my problem installing Service Pack 2 on the microsoft
windows update newsgroup and didn't get an answer.
My need to install sp2 stems from the fact that I did a "recovery" on
my Toshiba laptop, meaning that I used the emergency disc that came
with the computer (three years ago) to reinstall Windows.
When I tried to download sp2 it failed and I also tried it from a disc
I ordered from Microsoft, same result. I get Error 5: Access is
denied. I enabled verbose logging, ran the sp2 install, and looked in
setupapi.log to find the problem registry key.
According to microsoft's kb docs, "These issues may occur when
permissions for one or more registry keys are restricted in a way that
prevents the update of these registry keys."

Setupapi.log had this error message:


#E008 Setting registry value HKLM\Software\Microsoft\Internet
Explorer\MAIN\FeatureControl\FEATURE_DISABLE_MK_P ROTOCOL
#E033 Error 5: Access is denied.


So I went into regedit, followed the file path all the way to MAIN; but
the FeatureControl file or folder is absent. It is not a problem with
restricted permissions; the file simply is not there.



Re: Windows registry problem when installing SP2 on Windows XP
Carbon_Rod, Thu Apr 13 2006, 08:27PM

You did not RTFA in google cache:
"
Problem:
When you try to install Microsoft Windows XP Service Pack 2 (SP2), you
experience the following issues:
You cannot install the service pack and may receive the following error
message towards the end of the installation process:
"Service Pack setup has failed. Access Denied"
(Link2

However, if you use the /u switch (no user interaction) to install SP2, you
won't see an error message.
Instead, look in C:\Windows\Svcpack.log to verify this problem exists. Look
for:
"Access is denied.
Service Pack 2 installation did not complete.
Select 'OK' to undo the changes that have been made.
Starting process: C: \WINDOWS\$NtServicePackUninstall$\spuninst\spunins t.exe
/~ -u -z
Software Update Rollback has completed with return code 0xbc2. This rollback
requires a reboot.
Service Pack 2 installation did not complete.
Windows XP has been partially updated and may not work properly.
Update.exe extended error code = 0x5
Update.exe return code was masked to 0x643 for MSI custom action compliance."

You can also look in C:\Windows\setupapi.log in order to verify this problem.
Look for:
"Setting registry value
HKCR\Interface\{00000500-0000-0010-8000-00AA006D2EA4}\TypeLib\Version
Error 5: Access is denied.
Parsing AddReg section [ado.AddReg] in
"c: \4d835a34ff0402a27889723cf2ea\i386\update\update.i nf" failed. Error 5:
Access is denied.
Parsing install section [DataAccessSection] in
"c: \4d835a34ff0402a27889723cf2ea\i386\update\update.i nf" failed. Error 5:
Access is denied."


Cause:
The administrative user's permission on several registry keys are incorrectly
set and SP2 thinks it doesn't have access to modify the values in several
registry keys. In reality, the registry keys can be modified by the
administrative user, even though the registry key permissions are configured
improperly (Administrators is set to READ). I believe the registry key
permission problem is cause by a faulty MDAC 2.8 installation (prior to
installing SP2). As you may know, part of the SP2 installation process
installs MDAC 2.8 which is when the SP2 installation failure occurs.


Solution:
Thus far, we have experienced this issue on 6% of all computers in our
organization. Create a batch file using the code below and run it on a
computer that has experienced this problem. Regperm.exe (part of Windows XP)
is used to set the registry key permissions correctly. Please fix the line
wraps (each line ends with /R).

@echo off
regperm /K HKEY_CLASSES_ROOT\Interface\{00000500-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000501-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000503-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000504-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000506-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{0000050E-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000512-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000515-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000534-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{0000054C-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{0000054D-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{0000054F-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000550-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000555-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000556-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000564-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000565-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
regperm /K HKEY_CLASSES_ROOT\Interface\{00000569-0000-0010-8000-00AA006D2EA4}
/I /S /A:Administrators:F /A:SYSTEM:F /A:"CREATOR OWNER":F /A:"POWER
USERS":WCRD /A:USERS:R /R
CLS

Now, does anyone know how to use VBScript to check the permissions on one of
these registry keys? I'd like to automate this solution to run the batch file
if necessary. And no, this
(Link2
px) won't work because the administrative user can change the permissions
even though it appears that they only have READ access.

Wally Beck
Gainesville College
wbeck@xxxxxxxxxxxxxxx
" ( Link2 )
Re: Windows registry problem when installing SP2 on Windows XP
kell, Sat Apr 15 2006, 06:09PM

Carbon rod said:
"I believe the registry key permission problem is caused by a faulty MDAC 2.8 installation (prior to installing SP2). As you may know, part of the SP2 installation process installs MDAC 2.8 which is when the SP2 installation failure"

After the recovery operation I allowed windows update to do all downloads. There were about 38 or 39 downloads that came before sp2.
If what you said in your post is true, those downloads may have caused the problem. Do you think it would help if I run the recovery again, then install sp2 directly from disc (which I have), without doing any other updates first?
Re: Windows registry problem when installing SP2 on Windows XP
Carbon_Rod, Sat Apr 15 2006, 11:24PM

I doubt it as your stumbling block may remain if you import the prior registry backups that already have the faulty keys present.
1.) Backup your user files to a FAT32 drive or DVDRs.
2.) Run the script with the administrative bug fix after all the updates complete.
3.) And attempt the sp2 update with the CD.


The problem with plugging holes in damns with bubble gum is eventually you have a damn built out of bubblegum... it’s the Microsoft way...
Re: Windows registry problem when installing SP2 on Windows XP
kell, Mon Apr 17 2006, 12:48AM

kell wrote ...

Do you think it would help if I run the recovery again, then install sp2 directly from disc (which I have), without doing any other updates first?

That fixed it. SP2 installed finally.