uses registry;

    function Tform1.ADOInstalled:Boolean;

    var

    r:TRegistry;

    s:string;

    begin

      r := TRegistry.create;

      try

      with r do

      begin

        RootKey := HKEY_CLASSES_ROOT;

        OpenKey( '\ADODB.Connection\CurVer', false );

        s := ReadString('');

        if s <> '' then Result := True

        else Result := False;

        CloseKey;

      end;

      finally

       r.free;

      end;

    end;

    procedure TForm1.Button1Click(Sender: TObject);

    begin

     if ADOInstalled then showmessage('this computer has installed ADO');

    end;

相关文章:

  • 2021-09-03
  • 2021-09-07
  • 2021-12-13
  • 2021-08-08
  • 2021-12-12
  • 2021-12-15
  • 2021-10-01
猜你喜欢
  • 2021-11-17
  • 2022-03-06
  • 2021-05-28
  • 2022-12-23
  • 2021-04-24
  • 2021-08-29
相关资源
相似解决方案