C# autostart automatically add application to startup folder

ぃ、小莉子 提交于 2019-12-05 21:19:24
Anand

You can use it :

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

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

smirkingman

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!