function ir_MsCommDetect() local bOK = true; local strVersion = "0.0.0.0"; bOK = Registry.DoesKeyExist(HKEY_CLASSES_ROOT,"CLSID\\{648A5600-2C6E-101B-82B6-000000000014}\\InprocServer32"); if (bOK) then strFileName = Registry.GetValue(HKEY_CLASSES_ROOT,"CLSID\\{648A5600-2C6E-101B-82B6-000000000014}\\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