C# autostart automatically add application to startup folder

徘徊边缘 提交于 2019-12-22 10:46:29

问题


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?


回答1:


You can use it :

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



回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/4247439/c-sharp-autostart-automatically-add-application-to-startup-folder

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