Windows Mobile的驾驶室安装程序检测到.NET CF 3.5并安装它 [英] Windows Mobile Cab Setup to detect .NET CF 3.5 and Install It

查看:280
本文介绍了Windows Mobile的驾驶室安装程序检测到.NET CF 3.5并安装它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了Windows Mobile 6专业应用程序中使用的目标框架.NET CF 3.5,专业的6 SDK。也造就了其SmartDeviceCab文件。当我的设备没有CF 3.5安装就无法运行我的应用程序(因为该设备具有.NET CF 2.0)。 现在我知道我必须有NET CF 3.5设备上,我想运行我的应用程序。 如何检测CF的最新版本,并从我的出租车安装程序安装(如果需要)CF 3.5。我已经探索并通过了很多的Setup.dll但它太旧了路,我没有找到办法从我Setup.dll运行cab文件。请大家帮我想办法了。请将链接/样品code提供的。更令人沮丧的是,我从来没有碰过VC ++。

I have developed windows mobile 6 professional application using targeted framework as .NET CF 3.5 and professional 6 SDK. Also created its SmartDeviceCab file. When I install it on device not having CF 3.5 it fails to run my application (because the device has .NET CF 2.0). Now I know that I must have NET CF 3.5 on the device where I want to run my app. How can I detect the current version of CF and install(if required) CF 3.5 from my cab setup. I have explored and gone through much on Setup.dll but its too old way and I didn't find way to run cab file from my Setup.dll. Please help me to find the solution. Would be grateful if link/sample code provided. More frustrating is, I never touched VC++.

我已经通过了: <一href="http://stackoverflow.com/questions/686651/detecting-if-the-compact-framewok-is-installed-on-mobile-device">http://stackoverflow.com/questions/686651/detecting-if-the-compact-framewok-is-installed-on-mobile-device和它的链接。

I have gone through: http://stackoverflow.com/questions/686651/detecting-if-the-compact-framewok-is-installed-on-mobile-device and its links.

Shaileshķ。

Shailesh K.

推荐答案

很简单。它有一个小的C ++ code,但你没有改变它。它只是创建包含(​​在你的情况下,3.5)要安装.NET cab文件第二个智能设备CAB项目,并交换安装DLL从C ++项目创建的事项列入样本。你只需要添加描述要安装CAB文件的,你是金色的注册表值。你不需要检测,他们已经安装了哪个版本的.NET,只扔在那里,它将安装在任何现有安装的顶部。有一个完整的白皮书,说明它在样品中,以及源$ C ​​$ C。只要下载了Windows Mobile 6 SDK并安装它后,浏览到您的计算机上此目录。打开名为MultiCab Whitepaper.doc的文件,并按照指示。

Very simple. It has a little C++ code, but you don't have to change it at all. It's simply a matter of creating a second smart device cab project containing the .NET cab file you want to install (3.5 in your case), and swapping the installation DLL for the one created from the C++ project included in the sample. You just add registry values that describe where the cab files you want to install are and you're golden. You don't need to detect what version of .NET they have installed, just throw it in there and it will install over the top of any existing installation. There is a full whitepaper that explains it in the sample, as well as source code. Just download the Windows Mobile 6 SDK and navigate to this directory on your computer after installing it. Open the document titled "MultiCab Whitepaper.doc" and follow the instructions.

C:\ Program Files文件\的Windows Mobile 6 SDK \样本\共同\ CPP \ Win32的\ multicabinstall

C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\multicabinstall

我用这个对于我自己的项目和它的作品这么好!

I used this for my own project and it works SO well!

这篇关于Windows Mobile的驾驶室安装程序检测到.NET CF 3.5并安装它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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