uses registry;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> Reg: TRegistry;<br>begin<br> Reg:=TRegistry.Create;<br> Reg.RootKey:=HKEY_LOCAL_MACHINE;<br> try<br> Reg.OpenKey('SOFTWARE/Borland/Database Engine', False);<br> if Reg.ValueExists('CONFIGFILE01') then<br> MessageBox(handle,'BDE 已注册','信息',0)<br> else<br> MessageBox(handle,'BDE 未注册','错误',0);<br> finally<br> Reg.CloseKey;<br> Reg.Free;<br> end;<br>end;