1. 将自己写的程序拷贝到生成平台目录,如:拷贝 Myshell.exe 到
D:/WINCE500/PBWorkspaces/SHELL_demo/RelDir/Emulator_x86_Release 下
2. 修改 bib 文件,使程序加入到 最后生成的 bin中
3. Platform Builder 5.0 下点击菜单 “Build OS” -> “Open Release Directory”,在弹出的 console 中 输入:
notepad shell.reg
也就是用记事本打开D:/WINCE500/PBWorkspaces/SHELL_demo/RelDir/Emulator_x86_Release 下的shell.reg 文件,进行编辑
4. 编辑下面的一行,把 explorer.exe 修改成自己添加的程序。
即把
[HKEY_LOCAL_MACHINEinit]
"Launch50"="explorer.exe"
"Depend50"=hex:14,00, 1e,00
改为:
[HKEY_LOCAL_MACHINEinit]
"Launch50"="MyShell.exe"
"Depend50"=hex:14,00, 1e,00
5. 保存 shell.reg 文件,回到 pb5,点击菜单
“Build OS” -> “Make Run-Time Image”,即重新生成镜像文件,然后下载到模拟器或设
备,这样就启动了自己的MyShell.exe,而没有桌面,任务栏等等
出处:http://blog.youkuaiyun.com/orangeman1982112/archive/2008/10/02/3009487.aspx