I want to know how to code a program that will add itself to startup once it has installed on a machine. I am trying to make a scary program that will run every time my friend starts up his computer but i dont know what the right code is to make it do it. Can some one please help me and give me an example code on how this will work for visual studios 2005. And i want the program to add itself to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run\