Installation “Error 1402”

When installing or uninstalling Microsoft Windows component technologies on Windows, you may encounter a message box similar to “Error 1402. Could not open key: UNKNOWN\ Components\ 385C8F4C818DA64381F63245686473F0\…

GeoHECRAS Installation Error 1402

The long number listed is not an “address”. It is a registry parent container key name (as a GUID) and its child name (as a GUID). The last “\” character separates the two parent-child GUIDs.

This error is not related to our CivilGEO software, but rather to components which are provided by Microsoft. The following section describes how the error is generated and how to fix it.

How to fix ‘Error 1402. Could not open key: UNKNOWN…’

This error is generally caused by insufficient or incorrect permissions on the named registry keys, or parent container of such registry keys. In relation with CivilGEO software, it may occur after upgrading the computer workstations from Windows 7 to 10, and then upgrading or reinstalling Microsoft products or components. The error can be easily fixed; follow these steps:

  1. Backup your computer or the registry. Microsoft’s built-in backup program allows for the “system state” to be selectively backed up. Alternatively, ZIP up the windows\system32\config directory while running in a backup operating system (this is where the registry hive files are located).
  2. Log in as the ‘administrator’ (or an account with full administrator access) and disable the “UAC” (User Access Control). To disable the UAC, open the “User” control panel applet and select the Change User Account Control Settings. In Windows 10 the next dialog box will display a slider, simply set it to Never Notify.
  3. From the START menu, execute Run… (press WIN+R) and then type “regedit“.
  4. Navigate to the following registry root:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components 
    The ‘S-1-5-18’ key may be different on your computer.
  5. Right click on the Components registry key, and then choose Permissions…
  6. The Permissions for Components dialog box will be displayed.
    Permissions for Components dialog box
  7. Click the [Add…] button and add in the “Administrator”, “Administrators” and “SYSTEM” accounts. You might also want to add a local account having administrator privileges. 
  8. On the first Permissions for Components dialog box, click on each account (in the top-list) and make sure each has the “Full Control = Allow” and “Read = Allow” permissions.
  9. Click the [Advanced] button to display the Advanced Security Settings dialog box appears.
  10. On the Permissions tab, turn on the Replace all child object permission entries with inheritable permission entries from this object checkbox, and then press click the [Apply] button.
  11. Repeat the above steps once more. There shouldn’t be any errors regarding not being able to update the permissions on the child keys.
  12. Exit the dialog boxes by clicking the [OK] button, and the main registry editor will become the active window.
  13. Re-run the CivilGEO installer or uninstaller by right-clicking on the respective icon and select “Run as administrator…” (if available) from the displayed context menu.
  14. If the “Could not open key” message is displayed, on the exact same keys, it means the above operations were not implemented correctly. Simply repeat the above steps for main registry root node. 

If you have any issues regarding this, contact our technical support. They will be glad to assist you further.

About the Author Chris Maeder

Chris Maeder

Chris is an experienced civil engineering and software technology leader, with over 30 years industry experience. With proven expertise in global software development, he has built engineering teams that adapt quickly, focus on what’s important and, most importantly, deliver. He is a licensed professional civil engineer with extensive experience in water resource engineering. He has performed and supervised engineering projects in urban stormwater drainage, transportation and roadway drainage, storm sewer design, detention pond design, stormwater quality, green infrastructure, watershed management planning, wastewater sewers, water distribution networks, pump stations, FEMA flood studies, bridge and culvert design, bridge scour and armoring, dam failure analysis, seepage and groundwater modeling, and environmental permits.

Related Articles