Got an access denied when installing Hauppauge WinTV driver I googled forever before I found the fix. So here it is to help the other computer engineers out there. I saw many issues that were solved using the methods below. Some were regarding installing itunes, some were installing video or sound cards, all errored with permission denied or access denied, or they couldnt edit a registry key due to permission issues, etc.
In XP Pro…
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
This here works in both XP Pro & XP Home
Download SubInAcl.exe, Install the program.
Now create a new text document and copy the following into it.
cd /d "%programfiles%\Windows Resource Kits\Tools"
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators > %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /subdirectories %programfiles%\ /grant=administrators=f /grant=system=f /grant=users=e >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %HOMEPATH%\Desktop\subinacl_output.txt
WARNING – This is very risky!!! I hope you have a WinPE or similar cd so you can manually restore your registry if you need to.
Now, create a backup of your registry please!
Save the file as resetreg.cmd and run it. Sit back and watch while SubInAcl fixes your registry permissions… A log file named “subinacl_output.txt” will appear on your desktop and will have the log of what took place.
If you get lucky like I did, this will completely screw up your windows install. Then you can restore from your backup and try again, and perhaps restore an earlier restore point snapshot, and eventually this may fix the the problem. It did for me… after several attempts.
Cheers!