Windows 启动时启动我的应用程序(所有版本的 Windows)?
我正在使用 Delphi 2010 编写一个应用程序。我希望在 Windows 启动时启动我的应用程序。我需要它在最新版本的 Windows XP、7.0 和最新服务器中工作。
将其存储在以下关键工作下,还是我需要做其他事情?
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
感谢您的帮助
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这只会导致它在运行安装过程的用户连接时启动。如果您希望它在 Windows 启动时启动,请在 HKLM 下尝试。
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.
请注意,这些运行键条目会在用户登录时执行。要在启动时启动任务,最好编写 Windows 服务,这在 Delphi 中很容易做到。
有关服务的一些帮助: http://delphi.about .com/od/windowsshellapi/a/delphi-windows-service-applications.htm
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