How do I include the .NET Compact Framework as part of a Smart Device CAB Project?

允我心安 提交于 2019-12-04 09:47:51

问题


I'm working on a VS2008 Smart Device app that includes a Smart Device CAB Project for deployment. I was surprised to find out that this installer project doesn't install the .NET Compact Framework if necessary. Can it be made to do so?


回答1:


It can be done with some work. See Automatically Install Multiple CAB Files to a Windows Mobile/Pocket PC Device from codeproject.com




回答2:


There is no way to get a CAB Project to install and run another CAB file - it's a limitation of the CAB installer system (wceload to be exact). One way to achieve it is to include the CF CAB and then create a custom setup DLL that expands it after the internal CAB is unpacked. Of course the CAB project has no provision for correctly updating the INF file to run the custom setup DLL, so you have to manually build the CAB using CABWIZ.

Needless to say, the entire CAB installer architecture leaves something to be desired.



来源:https://stackoverflow.com/questions/557661/how-do-i-include-the-net-compact-framework-as-part-of-a-smart-device-cab-projec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!