C# 自动启动自动将应用程序添加到启动文件夹

发布于 2024-10-03 23:30:22 字数 97 浏览 0 评论 0原文

C# 自动启动是否有可能自动将应用程序添加到启动文件夹。现在我可以下载并安装具有自动启动功能的 C# 应用程序,但当我重新启动 Windows 时,应用程序不会自动评级。怎么做呢?

Is it possible that C# autostart automatically add application to startup folder. Now i can download and install C# application with autostart but application is not srated automatically when i restart windows. How to do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

嗳卜坏 2024-10-10 23:30:22

你可以使用它:

RegistryKey rkey = 
    Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run");
rkey.SetValue("YourApplicationName", Application.ExecutablePath);

You can use it :

RegistryKey rkey = 
    Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run");
rkey.SetValue("YourApplicationName", Application.ExecutablePath);
指尖凝香 2024-10-10 23:30:22

如果您想启动一些应用程序<我建议您使用 Windows 服务: )

If you want to start some applications< I suggest you to go for Windows Services :)

许你一世情深 2024-10-10 23:30:22

您可以使用主动安装,无需编程,只需在 HKLM 中创建一些注册表项

Active Setup 是 Microsoft 用于下载和安装 Internet Explorer 版本 4 至 6 的安装技术。它旨在通过 Internet 有选择地下载和安装已签名的 Internet Explorer 组件。这显着减少了下载的数据量以及更新所需的时间。 Active Setup 还可以从中断点恢复部分完成的下载。

You could use Active Setup, no programming, just a few registry entries to create in HKLM

Active Setup is the installation technology Microsoft used for downloading and installing Internet Explorer versions 4 to 6. It was designed to selectively download and install signed Internet Explorer components via the Internet. This significantly reduced the amount of data to download as also the time required for updates. Active Setup could also resume partially completed downloads from the point where they were interrupted.

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