Can anyone recommend how they check MDAC is installed. Especially on Win95

I was using the below ADO code on a Win95(B) PC. It reported True and
ADOConnection.version  reported version 2.1 was installed but when I
executed:
CreateUDLFile(DataLinkDIR() +
'\mydb.udl','Microsoft.jet.OLEDB.4.0','Data\mydb.mdb');
I got path %1 not found. I would have thought if MDAC 2.1 was installed then
the UDL path would be known, or have I missed something.


var
  R : TRegistry;
begin
  Result := False;
  R := TRegistry.Create;
  Try
    With R do begin
      RootKey := HKEY_CLASSES_ROOT;
      OpenKey('\ADODB.Connection\CurVer',False);
      if ReadString('') <> '' then
        Result := true;
      CloseKey;
    end;
  finally
    r.Free;
  end;


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to