Friday, December 13, 2013

Resolving install error "FATAL ERROR: Error 1402. Could not open key"UNKNOWN\Components\....

Installer failed on my machine with error 1402"Could not open key:UNKNOWN\Components\. This error generally comes up if the installer is trying to access a registry key which is created by local system account. The SID of local system account is S-1-5-18. I tried following things to resolve the issue

Option 1:
1. Run RegEdit.exe using administrator account.
2. Browse to the particular registry key giving access problems.
3. Right click on the key, select "permissions..." menu item.


 4. Click Add.. button



 5. Specify 'administrator' account. Click on Advanced... button. Select "Replace all child object permission entries with inheritable permission entries from this object" option

 6. Try delete or renaming the registry key.

If this does not work out then

Option 2:
1. Download SubInACL.exe from following link
http://www.microsoft.com/en-in/download/details.aspx?id=23510
2. Run the msi "Subinacl.msi". It will install the files in folder "C:\Program Files (x86)\Windows Resource Kits\Tools\".
3. Open a command prompt with administrator privilege.
4. Go to the folder "C:\Program Files (x86)\Windows Resource Kits\Tools\".
5. Run command 
subinacl /subkeyreg '' /grant=administrators=f /grant=system=f
6. Try delete or renaming the registry key.
 
Option 2 has worked for me in many cases but be careful about the tool since it modifies your registry. Also Don't forget to take backup of registry before doing any modification

Happy debugging...