RegTemp : TRegistry;<br><br> RegTemp := TRegistry.Create;<br> Try<br> RegTemp.RootKey := HKEY_LOCAL_MACHINE;<br> RegTemp.OpenKey('SOFTWARE/Microsoft/Windows/CurrentVersion/Run', True);<br> RegTemp.WriteString('Test', 'C:/Project1.exe');<br> Finally<br> RegTemp.CloseKey;<br> RegTemp.Free;<br> End;