简体   繁体   中英

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

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.

Be aware that these Run key entries execute when a user logs on. To launch a task on startup, it's better to write windows services, which is quite easy to do in Delphi.

A little help on services: http://delphi.about.com/od/windowsshellapi/a/delphi-windows-service-applications.htm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM