Nov 22

This article shows how to build a program that allows a user to control which applications will run when Windows starts up, without having to put the application entries into the Startup menu. In essence, the TRegistry object is used to manipulate the Registry from Delphi code.

Have you ever asked yourself where are those applications that seem to be executed when Windows start, you cannot find in the StartStartUp Windows menu? Or, how a virus can start itself each time you reboot? Or, who started all those applications you see in the System Tray?

As you might guess, you can automatically start programs whenever Windows launches. If you have programs automatically starting that you have not loaded (do not want) then you can remove them using the Windows StartUp Manager Application we will build in this article.

Here’s how to manually specify an application to be run at Windows startup:

  1. Open your registry (StartRunregedit) and locate the key HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun.
  2. For each program you want to start automatically create a new string value using a descriptive name, and set the value of the string to the program executable. For example, to automatically start MyApplication.exe, add a new entry of “MyApp“=”c:MyAppsMyApplication.exe“.

Download Source Code

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Twitter

Related Posts:

  1. Reinstall Windows XP Service Pack 3?
  2. Install Windows XP Service Pack 3 (SP3)
  3. Windows Azure
  4. System Tray Delphi Application (Part I)
  5. Make First Zeos Delphi Application

Leave a Reply