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?
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 :)
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