uses registry;
function IE_zufuegen: boolean;
var
Reg: TRegistry;
begin
result := false;
Reg := TRegistry.create;
try
Reg.RootKey := HKEY_LOCAL_MACHINE;
if Reg.OpenKey('\SOFTWARE\Microsoft\Internet Explorer\Extensions\' +
'{42800000-FFFF-0000-0000-428956031850}', True)
then begin
Reg.WriteString('CLSID', '{1FBA04EE-3024-11d2-8F1F-0000F87ABD16}');
Reg.WriteString('ButtonText', 'DBR');
Reg.WriteString('MenuText', '&DBR');
Reg.WriteString('Default Visible', 'YES');
Reg.WriteString('Icon', 'd:\icon2\dbr16.ico,0');
Reg.WriteString('HotIcon', 'd:\icon2\dbr16h.ico,0');
Reg.WriteString('Exec', 'd:\dbr_prog.exe');
result := true;
end;
finally
Reg.CloseKey;
Reg.Free;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
if not IE_zufuegen then showmessage('FEHLER');
end;