You have to register the exe with the registry startup key.
This is what I did with CUO Desktop.
Code:
private void SetLoadWithWindows(bool load)
{
try
{
string regkey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
using( RegistryKey key = Registry.LocalMachine.CreateSubKey(regkey) )
{
if( load )
key.SetValue("cuodesktop", Path.Combine(Paths.ApplicationPath, "CUODesktop.exe"));
else
key.DeleteValue("cuodesktop", false);
key.Close();
}
}
catch
{
}
}