Windows CE 6.0 post-build on WIN7 64 bits machine

之前做了WinCE几年,包括5.0和6.0,有一定经验,随着WinCE的没落,不再做相应产品,市面上WinCE的产品越来越少,也就不打算写太多WinCE的内容,上篇文章提到了post-build,也就顺便写一下64位机器上CE6的post-build吧。

最初在32位XP系统上post-build上是很正常的,到了WIN7 64位系统时post-build无效,详细看了一下build log,发现是编译过程中找不到系统的什么工具,时间太久已经忘了,经过分析原来是Platform Builder安装在WIN7 64位上注册表中的目标位置与XP不同,而PB在编译过程中无法找到需要的信息,导致最终post-build无效。

所以创建一个registry文件,比如wince.reg,添加如下内容,然后直接导入系统即可:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\3.00]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\3.00\Hardware Debug]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00]
"Language"="USA"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Debug]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Directories]
"Install Dir"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\"
"OS Install Dir"="D:\\WINCE600\\"
"Tools Install Dir"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\cepb\\IdeVS\\"
"IDE Install Dir"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\External Tools]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\External Tools\CE &Update Check]
"ToolCmd"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\cepb\\SustainedEngineering\\CEUpdateCheck.exe"
"ToolDir"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\cepb\\SustainedEngineering\\"
"ToolOpt"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\General]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Registration]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Registration\DigitalProductID]
@=hex:a4,00,00,00,03,00,00,00,38,34,33,30,32,2d,30,30,36,2d,30,31,39,31,30,35,\
  35,2d,36,30,33,30,30,00,78,00,00,00,38,31,34,2d,30,30,33,30,37,00,00,00,00,\
  00,00,00,0c,10,ae,1d,06,7e,f8,d9,4d,07,c0,73,40,c6,00,00,00,00,00,00,4d,8a,\
  6b,53,5c,fe,6c,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,30,38,38,30,34,00,00,00,00,00,00,00,00,00,00,00,68,2e,33,fe,\
  77,0f,00,00,95,14,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,2f,e3,4c,91

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Registration\ProductID]
@="84302-006-0191055-60300"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\SDKRoller]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\SDKRoller\LangRollers]
"{C865CF92-25A7-4B67-AA7F-80B5B7554929}"=""
"{C7A1C31C-41ED-434C-9EAD-526B420FAC75}"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Setup]
"Locale"=dword:00000409
"Version"="6.00.2027"
"CETK"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\CEPB\\WCETK"
"SP1_ENU"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\"
"SP1"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\"
"FP1_ENU"="D:\\WINCE600\\"
"FP1"="D:\\WINCE600\\"
"FP2_ENU"="D:\\WINCE600\\"
"FP2"="D:\\WINCE600\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Tools]
@=""
"MenuName#0"="Remote File Viewer"
"PathName#0"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cefilevw.exe"
"MenuName#1"="Remote Heap Walker"
"PathName#1"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\ceheapwk.exe"
"MenuName#3"="Remote Registry Editor"
"PathName#3"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\ceregedt.exe"
"MenuName#4"="Remote Spy"
"PathName#4"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cespy.exe"
"MenuName#5"="Remote System Information"
"PathName#5"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cesysinfo.exe"
"MenuName#6"="Remote Zoomin"
"PathName#6"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cezoom.exe"
"MenuName#7"="Remote Kernel Tracker"
"PathName#7"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\kerneltracker.exe"
"MenuName#8"="Remote Performance Monitor"
"PathName#8"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\ceperfmon.exe"
"MenuName#9"="Remote Call Profiler"
"PathName#9"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\msic.exe"
"MenuName#2"="Remote Process Viewer"
"PathName#2"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cepview.exe"


你可能感兴趣的:(WINCE,Windows)