I would like to launch an application when the WinCE device boot up, the AP I made is named 'test.exe'
Step 1:
Copy 'test.exe' along with its necessary dll and resource files into 'C:\WINCE700\platform\SDK_Name\FILES'
All files in the folder will be copy into the object folder (release/debug folder) after project build.
Step 2:
Modify file 'C:\WINCE700\platform\SDK_Name\FILES\platform.bib'
Add 'test.exe $(_FLATRELEASEDIR)\test.exe NK SH' in end of file, but before '; @CESYSGEN ENDIF CE_MODULES_DEVICE'
Step 2.1 (Option):
If you hope your .exe file locate at '\MyFiles\exe' folder, you should modify 'C:\WINCE700\platform\SDK_Name\FILES\platform.dat'
First, add folder into root, add script
root:-Directory("MyFiles")
then, add folder into MyFiles, add script
Directory("\MyFiles"):-Directory("exe")
Final, add file into \MyFiles\exe, add script
Directory("\MyFiles\exe"):-File("test.exe", "\Windows\test.exe")
Step 3:
Modify file 'C:\WINCE700\platform\SDK_Name\FILES\platform.reg'
Add following statement in end of file, but before '; @CESYSGEN ENDIF CE_MODULES_DEVICE'
[HKEY_LOCAL_MACHINE\init]
"Launch300"="bsqBrowser.exe --shell"
If there is already exist [HKEY_LOCAL_MACHINE\init] , you can just append "Launch300"="bsqBrowser.exe --shell" after exist statement.
The number 300 is the order of initialization, you should give a number beyond exist statement. Avoid using the number smaller than 100 to prevent conflict to system program.
Step 4:
Build, make image and attach device.
Reference:
http://www.360doc.com/content/11/0308/23/4672432_99399478.shtml
http://www.wretch.cc/blog/awaysu/22149164
http://huenlil.pixnet.net/blog/post/23373616-%5B%E8%BD%89%5Dap-launch-flow-in-wince
http://msdn.microsoft.com/en-us/library/aa448442.aspx
沒有留言:
張貼留言