开发者

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

开发者 https://www.devze.com 2023-02-01 12:38 出处:网络
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

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

精彩评论

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