Du tilføjer Registry til din uses liste.
Så siger du
var
Reg: TRegistry
begin
Reg:= TRegistry.Create;
Reg.RootKey:= HKEY_LOCAL_MACHINE; (eller HKEY_CURRENT_USER)
Reg.OpenKey('\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run', false);
Reg.WriteString('Programmets navn', Application.ExeName);
Reg.Free;
end;
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GED d- s: a--- C++ W++ w PS X+ tv+ b D G e- h! !r z--
------END GEEK CODE BLOCK------
[Redigeret d. 09/06-05 08:45:50 af Jonas (Decko)]