完善程序的部署:
將設備連接電腦,同步后,在 VS2003 中打開該工程,並 deploy(部署) 到 MC1000 上
MC1000 環境上需要以下文件:(cab文件需要在設備上安裝)
netcf.all.wce4.armv4.cab
sqlce.wce4.armv4.cab
sqlce.dev.wce4.armv4.cab
默認路徑:C:/Program Files/Microsoft Visual Studio .NET 2003/CompactFrameworkSDK/v1.0.5000/Windows
CE/wce400/armv4
System_SR_enu.cab(若是中文版,則為 System_SR_chs.cab)
默認路徑:C:/Program Files/Microsoft Visual Studio .NET 2003/CompactFrameworkSDK/v1.0.5000/Windows
CE/Diagnostics
Symbol.dll (因爲本次開發只引用到這兩個DLL)
Symbol.Barcode.dll
默認路徑:C:/Program Files/Microsoft Visual Studio .NET 2003/CompactFrameworkSDK/v1.0.5000/Windows
CE/
若要做成MC1000冷啓動后仍然可以自動安裝該軟件,需要在MC1000設備上作
如下處理:(test.exe 為主程序)
1、 因爲熱啓動后,只保留Application目錄下的文件,故把以上CAB、DLL文
件、主程序test.exe Copy到 Application
2、 設立test.cpp文件,用來把文件從 Application copy 到 Windows。具體見
附件1(MC1000冷启动时会自动加载Application和platfrom里面的一些启动东东,要注意是CAB包要设为只读,要不安装完后就消失了,Application是FLASH的冷启不掉数据)
3、 設立test.reg 文件,用來指定安裝順序。
具體見附件1
附件1:
引用
/application/netcf.all.wce4.armv4.cab > /windows/netcf.all.wce4.armv4.cab
/application/sqlce.wce4.armv4.CAB > /windows/sqlce.wce4.armv4.CAB
/application/sqlce. dev.wce4.armv4.CAB >
/windows/sqlce.dev.wce4.armv4.CAB
/application/System_SR_enu.cab > /windows/System_SR_ enu.cabs
/application/symbol.dll > /windows/symbol.dll
/application/symbol. barcode.dll > /windows/symbol.barcode.dll
/application/wceldcmd.exe > /windows/wceldcmd.exe
附件2:
引用
[HKEY_CURRENT_USER/Software/Symbol/Startup/Programs/Prog5]
"Name"="/windows/wceldcmd.exe"
"Command"="/Windows/netcf.all.wce4.armv4.cab"
"Continue"=dword:0
"ColdBootOnly"=dword:1
[HKEY_CURRENT_USER/Software/Symbol/Startup/Programs/Prog7]
"Name"="/windows/wceldcmd.exe"
"Command"="/Windows/sqlce.wce4.armv4.CAB"
"Continue"=dword:0
"ColdBootOnly"=dword:1
[HKEY_CURRENT_USER/Software/Symbol/Startup/Programs/Prog6]
"Name"="/windows/wceldcmd.exe"
"Command"="/Windows/ sqlce.dev.wce4.armv4.CAB "
"Continue"=dword:0
"ColdBootOnly"=dword:1
[HKEY_CURRENT_USER/Software/Symbol/Startup/Programs/Prog8]
"Name"="/windows/wceldcmd.exe"
"Command"="/Windows/System_SR_enu.cab"
"Continue"=dword:0
"ColdBootOnly"=dword:1
[HKEY_CURRENT_USER/Software/Symbol/Startup/Programs/Prog10]
"Name"="/Application/test.exe"
"Command"=""
"Continue"=dword:0
"ColdBootOnly"=dword:0