检测系统是否已安装ADO驱动程序

I

import

Unregistered / Unconfirmed
GUEST, unregistred user!
function 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;
 

Similar threads

S
回复
0
查看
690
SUNSTONE的Delphi笔记
S
S
回复
0
查看
716
SUNSTONE的Delphi笔记
S
I
回复
0
查看
500
import
I
I
回复
0
查看
710
import
I
S
回复
0
查看
498
SUNSTONE的Delphi笔记
S
顶部