//判断ado是否安装
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('');//版本号 如ADODB.Connection.2.5
if s <> '' then
Result := True
else
Result := False;
CloseKey;
end;
finally
r.free;
end;
end;