Fix Office 2010 Install Error 1402 Setup Cannot Open Registry Key

Deleting Grooveex.dll was one of the two problems I encountered recently during Office 2010 re-installation in Windows 7. This post will focus on the Install Error 1402 where Office 2010 setup cannot open the registry key named Unknown/Component/[Random Numbers]. Fixing this problem requires a cup of coffee and patience.

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.

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.

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
  • 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

    The process will now take several minutes, do NOT close the Window what may come. Once the process is complete, the command line window will automatically close and you can then install Office 2010 successfully.

    reset registry

    via Yuri’s Technology Blog & DSL Report

    Update: Mike in the comments below has shared a method that worked for him and many others, the method is as follows:

    I was able to get the install working with Win7 64 bit. When you get the error: “setup cannot open the registry key named” The key that follows is what you want to look for in the registry. Once you find the key (mine was in hklm\software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components), you will notice that there are subkeys underneath that you don’t have any permission to. First, right-click the top key (one in error message) and click permissions. Next click advanced and then the owner tab. Make sure adminsitrators is listed as an owner and then click the check box “Replace owner on subcontainers…”. When you press OK, you will get errors but that’s OK. Now check “Full Control” on the permisions for the administrators group and then click the Advanced button again. Then check the “Replace all child object permissions…”. Click OK. Again, you might get errors but that’s OK. You’ll notice you have permissions to the subkeys now.

    Unfortunately, there is more than one key effected. If you run setup again, you get an error on another key. I ended up looking for any key in the components area that had the arrow showing they could be expanded. Any one of those I didn’t have permission to, I changed like above. I think there were about 7 or 8 more. Eventually, the install worked and now I’m up and running. Long process but it did work for me.

    • Share this article!

      • Digg this!
      • Bookmark on Reddit
      • Bookmark at Delicious
      • Stumble this!
      • Share this post at Facebook
      • Tweet this!
      • Share on Yahoo! Buzz
      • Add AddictiveTips to your Technorati favorites
      • Share on Friendfeed
    This entry was posted in Office, Windows and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
    Office 2010 Club For more guides, tips, and tutorials, please visit our sister site Office 2010 Club.

    It is a forum managed by experts and enthusiasts, where you can find help, share problems, and participate in discussions.

    11 Comments

    1. Lou
      Posted February 23, 2010 at 4:35 am | Permalink

      Hi. I tried the fix you described using SubInAcl, but it still does not work for me. I cannot install Office because I keep getting the Error 1402 even after this process. Any other suggestions? Thanks.

    2. xcode
      Posted March 14, 2010 at 9:16 am | Permalink

      C:WindowsSystem32>subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=
      f /grant=system=f
      LookupAccountName : HKEY_CLASSES_ROOT:administrators 1337 Идентификатор безопасн
      ости имеет неверную структуру.

      Current object HKEY_CLASSES_ROOT will not be processed

      Elapsed Time: 00 00:00:00
      Done: 0, Modified 0, Failed 0, Syntax errors 1
      Last Syntax Error:WARNING : /grant=administrators=f : Error when checking argume
      nts – HKEY_CLASSES_ROOT

      sorry for my system language, but why i got this syntax error?

    3. shadowmaster63
      Posted April 8, 2010 at 5:51 am | Permalink

      subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=
      f /grant=system=f
      hmmm…..
      subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=Администратор=
      f /grant=system=f
      or
      subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=”You user name in system”=
      f /grant=system=f

    4. killchirot
      Posted April 13, 2010 at 6:48 am | Permalink

      Subinacl works great for me. Thanks!
      It takes a long time to finish the process, though.

    5. Alex
      Posted April 24, 2010 at 4:50 am | Permalink

      SubInAcl don’r work with Windows 7 x64………………
      ((((((((((((((((

    6. Charles
      Posted April 28, 2010 at 8:21 am | Permalink

      Well, at first I tried to use this method to fix my Windows 7 and install Office 2010.

      As it failed at first, I gave up on using it and restored my windows to sometime before I actually tried to install Office at first.

      Conclusion: Seems it worked! Office has been installing on its own (so far) and looks like its on his way to finish =P

      And SubInAcl does work on Windows 7 x64, it was running on mine but I decided to stop and restore because I knew the exact time this problem started to show up!

    7. Mike
      Posted April 29, 2010 at 9:58 pm | Permalink

      I was able to get the install working with Win7 64 bit. When you get the error: “setup cannot open the registry key named” The key that follows is what you want to look for in the registry. Once you find the key (mine was in hklm\software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components), you will notice that there are subkeys underneath that you don’t have any permission to. First, right-click the top key (one in error message) and click permissions. Next click advanced and then the owner tab. Make sure adminsitrators is listed as an owner and then click the check box “Replace owner on subcontainers…”. When you press OK, you will get errors but that’s OK. Now check “Full Control” on the permisions for the administrators group and then click the Advanced button again. Then check the “Replace all child object permissions…”. Click OK. Again, you might get errors but that’s OK. You’ll notice you have permissions to the subkeys now.

      Unfortunately, there is more than one key effected. If you run setup again, you get an error on another key. I ended up looking for any key in the components area that had the arrow showing they could be expanded. Any one of those I didn’t have permission to, I changed like above. I think there were about 7 or 8 more. Eventually, the install worked and now I’m up and running. Long process but it did work for me.

      Good luck

      • Stefan
        Posted May 9, 2010 at 12:26 am | Permalink

        Great, Mike. All the other options with registry cleaners and Microsoft tools failed. Pushing the permission changes as described by you did the trick. Thanks.

      • Daniel
        Posted May 13, 2010 at 3:55 pm | Permalink

        Look for keys ending with ‘AF18C3B9B1A1EE8′…

    8. redherring
      Posted May 7, 2010 at 3:32 am | Permalink

      thanks! it really worked… does it work for every OS? because I have a computer with windows 98..

    One Trackback

    1. [...] saliendo este mensaje apenas empezaba la instalacion : luego encontre esta posible solucion: Office 2010 Install Error 1402 Setup Cannot Open Registry Key pero sale igual error pero en otro registro pero esta vez sale casi por finalizar la instalacion: [...]

    Post a Comment

    Your email is never published nor shared. Required fields are marked *

    *
    *

    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>


    More in Office (10 of 10 articles)