for USB devices you may add a autorun inf file in root folder, and drop a line that says
[AutoRun] ;section
open=app ;yourprogram
eof
Then it shall start app
...