Hello Peter,

In the OnAfterInstall event:

var
   Reg: TRegistry;
begin
   Reg := TRegistry.Create;
   Reg.RootKey := HKEY_LOCAL_MACHINE;
   if Reg.OpenKey('\SYSTEM\CurrentControlSet\Services\' + Name, False) then 
begin
      Reg.WriteString('Description', 'This is my nice service');
      Reg.CloseKey;
   end;
   Reg.Free;
end;

---
Rgds, Wilfried
http://www.mestdagh.biz

__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to