AUTO LAUNCH APPLICATION FROM STARTUP FOLDER
Another method to automatically launch an application when the Compact 7 OS starts is to place a copy of the application executable in the \Windows\Startup folder. When Compact 7 starts, it scans and launches any application found in this folder.
Work through the following steps to configure the MyVPC OS design to generate an OS run-time image and launch the PB7_Win32.exe application from the startup folder:
1. Continue with the MyVPC OS design from the previous exercise; from the VS2008 Solution Explorer tab, double-click OSDesign.reg, and open this file in the code editor window.
2. Remove the following entries from OSDesign.reg (These entries were added in the previous exercise to launch the PB7_Win32.exe during startup and need to be removed for the exercise in this section.):
[HKEY_LOCAL_MACHINE\init] "Launch90"="PB7_Win32.exe" "Depend90"=hex:14,00,1e,00,32,00
3. From the VS2008 Solution Explorer tab, locate and double-click PB7_Win32.bib to open this file in the code editor window.
4. Replace the Modules entry with Files as follows:
FILES ; @XIPREGION IF PLATFORM_FILES_MISC PB7_Win32.exe $(_FLATRELEASEDIR)\PB7_Win32.exe NK ; @XIPREGION ENDIF PLATFORM_FILES_MISC
Code snippet is from Chapter23_Snippet.txt
When a BIB file entry ...