I have installed both Teststand3.1 and Teststand3.0 on my laptop, I want to know which is active. Which API function can I use to get this information under Labwindows. I know I can use the function "RegReadString" like below, but sometimes, this kind of method is not engough effective, because it just check which versions of Teststand have been installed.
RegReadString (REGKEY_HKLM,
"SOFTWARE\\National Instruments\\TestStand\\3.0", "Path",
NULL, 0, &size);
if(size!=0)
{
RegReadString (REGKEY_HKLM,
"SOFTWARE\\National Instruments\\TestStand\\3.0", "Path",
TetStandPath, size, &size);
version=0;
}
else
{
RegReadString (REGKEY_HKLM,
"SOFTWARE\\National Instruments\\TestStand\\3.1", "Path",
NULL, 0, &size);
RegReadString (REGKEY_HKLM,
"SOFTWARE\\National Instruments\\TestStand\\3.1", "Path",
TetStandPath, size, &size);
version=1; //
}
if(!size)
{
responce = ConfirmPopup ("Warning",
"NI Test Stand 3.x is not installed \n Do you want to continue?");
// next, I can determine which is installed according to variable "version"
Thanks
Jacky