开发者

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

I am writing an application using Delphi开发者_如何学JAVA 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜