@André: Ja, bei allen. (
BDS, Putty, Installer, Project1.exe
)
@Christian: Danke fürs Mitdenken. Der Code sah inzwischen schon so aus:
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
Reg : TRegistry;
begin
Reg := TRegistry.Create(KEY_ALL_ACCESS);
Reg.RootKey := HKEY_CURRENT_USER;
if Reg.OpenKey('\Software\SPP', true) then
reg.WriteString('Test', 'Ich war hier')
else
MessageDlg(inttostr(getlasterror), mtWarning, [mbOK], 0);
reg.Free;
end;
end.