The System Configuration API gathers information about a local or remote system such as connected hardware and installed software. Please follow these general steps in order to get a list and specific information about the NI software:
- Once a session has been initialized to create a handle to a particular system so that it can call the different System Configuration API methods, you can call the NISysCfgGetInstalledSoftwareComponents() function which will retrieve a list of software components installed on a system.
- The NISysCfgGetInstalledSoftwareComponents() function will return a handle that can be enumerated to return a list of software components on the system.
- If you want to get additional information about the system components such as the name and version of each of the components you need to call the NISysCfgNextComponentInfo() to obtain the list.
- Once the handle is no longer needed it must be discarded using NISysCfgCloseHandle().
Note: If you are not familiarized with the System Configuration API please take a look at the following example which has a GUI developed with LabWindows/CVI which shows a list of the NI installed software in the right column of the front panel of the program: C:\Users\Public\Documents\National Instruments\CVI\Samples\nisyscfg\InstallUninstallSoftwareComponents/InstallUninstallSoftwareComponents.cws