Search code examples
windowsdelphiregistrydelphi-2010

Starting my application when windows starts up (All versions of Windows)?


I am writing an application using Delphi 2010. I would like to have my application start up when windows starts up. I need this to work in the latest versions of Windows XP, 7.0, and the latest servers.

Would storing it under the following key work, or do i need to do something else?

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

thanks for any help


Solution

  • That will only result in it starting when the user running the installation process connects. If you want it to start when Windows starts then try under HKLM.