Windows 启动时启动我的应用程序(所有版本的 Windows)?

发布于 2024-10-09 10:38:35 字数 216 浏览 7 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

以往的大感动 2024-10-16 10:38:36

这只会导致它在运行安装过程的用户连接时启动。如果您希望它在 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.

幼儿园老大 2024-10-16 10:38:36

请注意,这些运行键条目会在用户登录时执行。要在启动时启动任务,最好编写 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文