可以通过修改注册表来实现:
uses registry;
var
Reg1: TRegistry;
begin
Reg1:=TRegistry.Create;
Reg1.RootKey := HKEY_LOCAL_MACHINE;
Reg1.OpenKey('/SOFTWARE/Microsoft/Internet Explorer/Extensions', True);
Reg1.CreateKey('{37E91B47-F40A-11D1-B792-444553540000}');
Reg1.OpenKey('/SOFTWARE/Microsoft/Internet Explorer/Extensions/
{37E91B47-F40A-11D1-B792-444553540000}', True);
Reg1.WriteString('ButtonText', '按钮名称');//按钮名
Reg1.WriteString('CLSID','{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}');
//系统默认id,是一定
Reg1.WriteString('Default Visible', 'Yes');//缺省可以
Reg1.WriteString('Exec', 'word所在的路径'); //按钮要执行程序
Reg1.WriteString('HotIcon', 'C:/WIN98/WINUPD.ICO');//热图标
Reg1.WriteString('Icon', 'C:/WIN98/WEB/chang.ico');//图标
Reg1.CloseKey;
Reg1.Free;
end;