Error 1402 During Installation of National Instruments Software

Updated Aug 30, 2018

Reported In

Software

  • LabVIEW

Issue Details

During the installation of National Instruments software , I received Error 1402 

I am logged in as the administrator and have access to the registry key. What does this error mean and how do I correct it?

Solution

This error message is a Windows installer error and not a National Instruments error. Even though you are logged in as the administrator and have access to the key, the National Instruments installer does not. Complete the following steps to change the permission settings for the particular registry:

Note: The registry contains critical system and application information. Editing the registry should be done very carefully and only after it is properly backed up.

  1. Write down the path to the key referred to in the error. For example, HKEY_CLASSES_ROOT\MSFlexGridLib.MSFlexGrid.1\CLSID.
  2. Choose Start»Run and type regedit in the Open dialog box.
  3. Before editing the registry, you should first backup your current registry file:
    1. In the Registry Editor dialog box select File»Export.
    2. Select All for Export Range and save the file to a location of your choice.
  4. Press Ctrl+F to open the Find dialog. Search for the text that follows UNKNOWN in the error message. When the exact key is found, right-click on the parent folder of the key referred to in the error message. (For example, HKEY_CLASSES_ROOT\MSFlexGridLib.MSFlexGrid.1) and select Permissions.
  5. In the Permissions dialog box, click on the Advanced button and place a checkmark in the Inherit from parent the permission entries that apply to child objects. Include these with entries explicitly defined here checkbox. Also place a checkmark in the Replace permission entries on all child objects with entries shown here that apply to child objects checkbox . Click OK»Yesto continue.
  6. Close the permission box for the parent key and open up the permission box for the key specific to the error by right-clicking on the key and selecting Permissions. (For the example given previously, the specific key would be CLSID.)  Verify that the group SYSTEM is populated in the group or user name list. Click on the group and verify that it has full control. If the group exists with full control, you should now be able to install your National Instruments software.
  7. If the group exists but does not have full control, click on Advanced»SYSTEM»Edit. Check the box to allow Full Control and click OK. You should now be able to install your National Instruments software.
  8. If the group SYSTEM does not exist, you can manually add the group. Click on Advanced»Addbutton. Type SYSTEM in the object name box and click OK. Then click in the box to allow full control and click OK. You can now try to install your National Instruments software. 

Additional Information

Sometimes it is necessary to perform these steps multiple times for different registry keys that the installer does not have access to. Once all of these are resolved, you should be able to install your National Instruments software successfully.

In rare cases, allowing full control to the SYSTEM group will not solve the problem. If this is the case, complete the following steps to address this behavior:

  1. Add a group to the specific key (again, for the given example this would be CLSID). 
  2. In the field labeled Enter the object names to select, add the object name EVERYONE. 
  3. Click OK
  4. Add full control permissions for this new group.

Note: If the key is not found, run the Windows Registry Checker Tool. To do this, go to Start»Run and type cmd in the Open dialog box. For Windows XP, enter the command CHKDSK /F ; for previous Windows Operating Systems, enter the command scanreg /fix . This tool will scan your registry for missing or corrupt keys and replace them with new keys.

WAS THIS ARTICLE HELPFUL?

Not Helpful