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.

    Advertisement
    • Lou

      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.

      • TomasBKK

        Hi, before trying “secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose” in Command Prompt, disable all your firewalls, antiviruses, spam filters, etc. Only then run this command line. Worked perfect for me!

        Tried SubInAcl and registry key changes, but it was all too simple!

        Regards,

      • Javier Martin

        Note that in Spanish Windows version, you have to change Administrators, for Administradores.

        For eg.: subinacl /subkeyreg HKEY_LOCAL_MACHINE /setowner=administradores

    • xcode

      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?

    • shadowmaster63

      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

    • killchirot

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

    • Alex

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

      • Brandon

        It ran for me, but its currently still working…

      • thethiny

        Well you should make it reset.cmd and right-click run as administrator.
        If it didn’t work try this:
        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.

    • Charles

      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!

    • Mike

      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

        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

        Look for keys ending with ‘AF18C3B9B1A1EE8′…

      • Charles

        This is the right way about it, rather than running black box scripts. You can also apply at a higher level and recurse down into the keys

      • Heinrich

        how did you find your registry keys folder? I have no clue as to how to even begin to look for mine…

      • mimi

        Thank God for Mike!!
        I had two frustrating weeks stuck on my computer trying to uninstall office 2007 and install 2010 and got all the familiar errors and deadends. At one point I almost gave up, but the only thing that kept me on forums and looking for solution is reinstalling windows. And I hate that. Doing that allll oveeeer again with all the programs and personal settings, I just couldnt accept that. And after trying all kinds of Registry boosters, downloads, run, msconfig tricks, and everything that i came up w on net I was exausted, cuz it just wouldn work for me. Until Mike’s comment poped up, and for the first time after 18 installation of office 2010 I got a screen telling me it was successfull! I couldnt believe, but now i do and just want to say THANK YOU MIKE, THANK YOU, THANK YOU, THANK YOU!
        :))))

      • Ovidiu

        Great, Mike.
        working with Win7 64 bit
        Thanks.

    • redherring

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

      • http://www.addicitivetips.com Nakodari

        All OS that Office 2010 supports!

    • Brandon

      didnt work

    • Michael

      Hi,,, can i download the reset.cmd…its not working just like you shown in the picture above

    • Michael

      Thank you….it woks great!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      • Shawn

        This worked for me.  I spent hours searching the web and trying so many different solutions.

        THANKS!!!!!!!!

    • Khristhian

      It didn’t work for me =’(

    • Gui

      Thanks a lot man ! The first solution worked for me !

    • Taqi

      Thanks a lot, it works great!

    • Iris

      Followed the instructions in the article first, which unfortunately didn’t work. Then followed Mike’s instructions to edit the registry (I am also running Win7 64bit) which worked, and luckily I only had to edit one key in the registry, not 7 or more!

      Rather annoyed something like this happens with a programme costing nearly £200!

    • Yutsi

      I still keep on getting the error even after following both the original poster’s advice and Mike’s advice. What do I do?

    • Kim

      Nakodari’s and Mike’s solutions were good ones that got me onto the right track. After hours of trial and error, I was able to employ a simple solution: instead of Mike setting permissions for the error key that 1402 identifies, just give permissions to whole “Component” key! DO MAKE A BACKUP OF YOUR REGISTRY, just in case… (such as by creating a restore point).

      In the registry go to “hklm\software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components”. Right-click the components key and click permissions. Next click advanced and then the owner tab. Make sure adminsitrators is listed as an owner, click it, and then click the check box “Replace owner on subcontainers…”. 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. I had to do it twice before it “caught”. Hope it works for you!

    • scott

      Thanks! Fantastic post… saved a huge amount of time. Worked great on windows 7 64 pro…

    • Ashutosh

      Iam not able to install OFFICE 2003 on xp computer.Getting error 1402.I tried to give permissions,still not working….

    • J

      Thank you. The first method resolved my issue cleanly and quickly. I had tried everything else up until this, wish I had found this first. Thank you, thank you! You’re a computer-life saver.

    • Christiano

      Just go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components, set full control to Administrator, open advanced and mark “Replace all child object permissions…”

    • Valentin

      It worked from the first try with that command. YEEEES!!
      Thank you, dude, you rule!

    • ftaa3

      I used the “Change Permissions” on each key that came up with the 1402 error.
      This worked after the second key permissions was changed.
      Office 2010 went in and is working fine.

    • Zman

      Unfortunately the SubInAcl solution didn’t work in my case, but Mike’s solution of finding each key that had a problem and fixing the permissions on each one worked GREAT & I was able to finally install and use MS Office 2010. Thanks for posting these solutions!!

    • Sandy

      Thank you so much! I haven’t slept more than a couple hours a night because of this issue, and your solution fixed it right up! Unbelievable!

    • Nikola

      10x Nakodari it’s work …. greatings from Bulgariaa

    • Naif

      It’s Not Working for me I cannot edit the registry… still access denied. I have already installed subinacl in system32 folder. I guess the problem is when I run the reset.cmd file because I get the following results:

      c:\Windows\System32\subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /gramt=system=f La estructura del identificador de seguridad no es válida.

      Current object HKEY_CURRENT_USER will not be processed

      Elapsed time 00 00:00:00
      Done 0, Modified 0, Failed 0, Syntax errors 1

      Does anyone knows what am I doing wrong ?I’m working with windows 7, and error 1402 it’s shown when I try to install Office 2010. Please Help

      Thanks in advance

    • HenryC

      Great, works perfectly for me.

    • Bartimeo

      Thank you very much, it worked like a charm!

    • AKeem

      THANK YOU VERY MUCH!!!! WORKED SPLENDID!!

    • Dave

      I can’t thank you enough for this fix. I’ve tried everything I could think of short of an OS reinstall, and this finally fixed my installation issues. Have one on me bud!

    • Marcelo Volmaro

      You made my life a bit easier… THANKS! Worked like a charm

    • Ben

      I had Office 2007 and then upgraded to Office 2010 Business. Tried SO many things but still had the problems. This fixed it for me! Thanks!

    • Bryan Van Kampen

      I struggled with installing Office 2010 for a few hours (there were some other issues as well), but the command line fix worked for me. Thanks, Great post!

    • Brian

      Had issues with a corrupt Office 2003 registry key and this fixed it for the Office 2010 upgrade. Thanks!

    • Ric

      The command line in the very first fix option worked for me. Thanks so much, this article ended several days worth of struggling and wrestling with this problem.

    • AF729

      Im so confused. I found the folder with that b9b1a1ee8 and i opened permissions as the article suggested. Yet for some reason, this has some sort of goofy “creator owner” user. I have vista, and it has administrator privileges ok, with full control. Creator Owner won’t change to full control, no matter how many times I check the boxes and select apply, it immediately unchecks the box. I was going from 2007 to 2010, and it have me this registry key issue in 3 areas: UNKNOWN/COMPONENTS\DA42BC89BF25F5BD0AF18C3B9B1A1EE80002119F20000000.

      heeeellllpppp!!!

    • Frank Zlot

      I had a helluva time with this until I did BOTH, the cmd script followed by the “short method” – secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

      That combination was the only way for me to get it installed.

    • Dangrenping

      i  am dawn.i cannt install micorosoft 2010 ,just like the picture below.i need your help .

      • nickliver

        same problem dude…

      • tims

        thanks man, you just save me alot of time.

    • http://trikks.wordpress.com/ Trikks

      Thanks a million, the secedit command solved my issues! 

    • http://trikks.wordpress.com/ Trikks

      Thanks a million, the secedit command solved my issues! 

    • 500gto

      Thank you mike

    • Serg Mik

      Thank you SO MUCH!
      Even opening Open Office was causing MS Office re-installation windows with a bunch of errors. I went through a nightmare with MS website and their “fixes”. NOTHING helped. Then I just followed this instructions, line by line. (Here is my warning for everybody – the process in cmd window is really long. Expect about 30 minutes to finish, may be even more, but you don’t even have to restart the computer after that).
      Then I just clicked on my MS Word icon – beauty is here again)
      For me the above procedure worked on Windows XP pro with MS Office XP with Frontpage.
      THANK YOU !

    • Www

      Whaaaaa, thant you so much for this incredible tip!!

    • Kmf18914

      thank you — I ran Fixit, then the secedit and finally the SubinAcl and your tools got my registry clean and Office 2010 installed!  Thank you, thank you, thank you

    • Forumspam

      The first method did the trick! Thanks

    • Mike

      Hello this worked for me thank you so much 

    • Bboy8766

      Very very good!!  You solved my problem. Thank you my friend…

    • Vishnu

      The first methods didn’t work for me… Mike’s method did work for me!! I jst changed permissions of HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS-1-5-18Components and changed owners of the key and all its subkeys as administrator…

    • FFJP

      I deleted My registry key stated next to error. and wala it worked.

    • IDEEPAK KUMAR

      AWESOME SOLUTION ..THANKS NAKO…

    • Hans

      running secedit solved my problem right away. Thanks :)

    • John

      Thank You. I struggled all day with this and your suggestions fixed it for me.

    • Charlie Pocss

      You are the best… I fixed an installation problem with Virtual Server 2008 R2 using your advice, I really really appreciated your help… thanks

    • Mohamed

      its work for me:)

    • Pedro

      Dude you are a life saver!!! It really worked for me altough it wasnt 8 more 300!

    • Altria

      First method worked very well for owa on sharepoint!
      thanks so much!

    • Ben

      Many Thanks! This Article helped me a lot.

    • swoodby

      I was able to get it installed with the secedit /configure /cfg %windir%infdefltbase.inf /db defltbase.sdb /verbose

    • drnimrod

      dude. i love you? THANK YOU.

    • manosg

      the solution with secedit /configure /cfg %windir%infdefltbase.inf /db defltbase.sdb /verbose worked for me.
      I also run the setup.exe as administrator.
      The installation completed successfully after that. Thank you!

    • Sean

      I was very surprised the first solution worked for me!