Monday, June 11, 2012

Error 1402 "Setup Can't Open Registry Key" during Microsoft Office 2010 install



This error is only shown when registry keys do not have Administrator permission. But you are logged in as Administrator, right? As it happens some setup can mess up the registry permissions and Office 2010 installer is no exception.
Entering the following line in Command Prompt will fix the problem for most people,

secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
but it didn’t work for me. If it doesn’t work for you as well, follow the second method below.
1. Download SubInAcl, a command line tool from Microsoft that enables administrators to obtain security information about files, registry keys services, etc. <> It will install to Program Files folder, copy SUBINACL.EXE file to /Windows/System 32 folder.

2. Link for SubInAcl - click here

3. Now create a new notepad and paste the following code in it;

subinacl /subkeyreg HKEY_LOCAL_MACHINE /setowner=administrators
subinacl /subkeyreg HKEY_CURRENT_USER /setowner=administrators
subinacl /subkeyreg HKEY_CLASSES_ROOT /setowner=administrators
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
cls
Exit

4. Rename the notepad to reset and change the extension to cmd, the complete name will become “reset.cmd” as shown in the screenshot below. Run this file as administrator.
reset cmd
5. The process will now take several minutes, do NOT close the Window. Once the process is complete, the command line window will automatically close and you can then install Office 2010 successfully.