Let me check: You want that your program is automatically loaded when XPe boots, right?
If so then the best way if to create custom shell component that will configure XPe so your program is started as shell application.
You can look for more info in TD help.