SUMMARY
How can I make my GUI application run on windows startup on a modified Windows box that will not start explorer.exe.
- Placing a link in Programs -> Startup folder doesn't get executed.
- My Application is graphical so I cannot just modify application to run as a service.
Background
I have an application that needs to run on a dedicated PC which is used to generate content for Digital Signage. It's the type of software that generates the announcements and various slideshow content which you see displayed on Plasma / LCD Screens in large organizations.
I've had experience with several different vendors of such content management software and they all basically build a windows application and then strip out things from windows to prevent any kind of popup from showing up etc. One one of the vendors I'm dealing with right now, windows has been modified such that explorer.exe doesn't start.
The run on startup functionality of our program makes use of a link in the Startup Folder. What i've found is that since explorer.exe isn't running neither does my application.
When the computer starts up it automatically boots into the run mode for the digital signage application which starts displaying the programmable content. You can press CTRL-ALT-DELETE and kill their program and then start explorer.exe from the taskmanager. After about a second or so... i see my application start.
So, my question is - How can I make my application load on a Windows box that will not start explorer.exe. Anyone know if say using a registry key in the Run folder would work even in the absence of explorer? Is there some other way way to make program runs on startup?
Edit: Accepted Answer Implementation Notes
I implemented the approach in the accepted answer. Thanks for all the suggestions.
Here are some links which i found useful in implementing it. I never did try the registry key approach. If someone confirms that it would execute w/o explorer.exe loading, please leave a comment.
- Process Starter class http://www.codeproject.com/KB/vista-security/interaction-in-vista.aspx
- Skeleton Windows Service Project [http://www.codeproject.com/KB/system/WindowsService.aspx?msg=2308706#xx2308706xx]