--%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --%%% %%% --%%% This script tests for the presence of NetComm ActiveX %%% --%%% %%% --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function ir_GetNetCommAXVersion() local bOK = true; local strVersion = "0.0.0.0"; bOK = Registry.DoesKeyExist(HKEY_CLASSES_ROOT,"CLSID\\{53867031-6B4D-4F7D-B089-5DFEC731F5FA}\\InprocServer32"); if (bOK) then strFileName = Registry.GetValue(HKEY_CLASSES_ROOT,"CLSID\\{53867031-6B4D-4F7D-B089-5DFEC731F5FA}\\InprocServer32","NoName",true); if (Application.GetLastError() ~= 0) then bOK = false; end end if (bOK) then -- Detect the version of the file here... verInfo = File.GetVersionInfo(strFileName); if(Application.GetLastError() ~= 0)then strVersion = "0.0.0.0"; else -- OK, we have the file version strVersion = verInfo.FileVersion; end end if (bOK ~= true) then strVersion = "0.0.0.0"; end return strVersion; end