uses
; Registry
procedure TForm1.Button1Click(Sender: TObject);
var
; reg: TRegistry;
begin
; reg := TRegistry.Create;
; reg.RootKey := HKEY_CLASSES_ROOT;
; reg.LazyWrite := false;
; {Add Program Support}
; reg.OpenKey('.bor/shell/open/command', true);
; {Invoke the program passing the file name as the first
; parameter}
; reg.WriteString('',
; ; 'C:/Program Files/Borland/Delphi5/Project1.exe %1');
; {Add Icon Display}
; reg.CloseKey;
; reg.OpenKey('.bor/DefaultIcon',true);
; {Use the first icon in the executable to display}
; reg.WriteString('',
; 'C:/Program Files/Borland/Delphi5/Project1.exe,0');
; reg.CloseKey;
; reg.free;
end;