如何将.NET Compact Framework作为智能设备CAB项目的一部分? [英] How do I include the .NET Compact Framework as part of a Smart Device CAB Project?

查看:155
本文介绍了如何将.NET Compact Framework作为智能设备CAB项目的一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个VS2008智能设备应用程序,其中包括智能设备CAB项目进行部署。我很惊讶地发现,如果需要,此安装程序项目不会安装.NET Compact Framework。可以这样做吗?

解决方案

没有办法获得CAB项目来安装和运行另一个CAB文件 - 这是CAB安装程序的一个限制(wceload是准确的)。实现它的一个方法是包括CF CAB,然后创建一个自定义设置DLL在内部CAB解包后扩展它。当然,CAB项目没有提供正确更新INF文件以运行自定义安装程序DLL,因此您必须使用 CABWIZ



不用说,整个CAB安装程序架构留下了一些希望。 p>

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?

解决方案

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.

这篇关于如何将.NET Compact Framework作为智能设备CAB项目的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆