First and most advanced option is developing a Windows Service. It will run on system start if you use
Auto
option in its properties.
There are good number of place where to register an application to run on start. I use my own method based on
SysInternals application "
AutoRuns".
Visit Sysinternals, Download SysInternals Suite:
http://technet.microsoft.com/en-us/sysinternals/bb842062[
^] (you can download just AutoRuns, but whole suite is so useful, see the index:
http://technet.microsoft.com/en-us/sysinternals/bb545027[
^]).
Unpack and execute
AutoRuns. It will show a tree with the comprehensive list of locations. You can use "go to registry" feature to locate the registry key, which you need to do programmatic installation.
—SA