检测Compact Framewok是否安装在移动设备上 [英] Detecting if the Compact Framewok is installed on mobile device

查看:259
本文介绍了检测Compact Framewok是否安装在移动设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个使用.net compact框架的应用程序。其中一个要求是在应用程序运行之前运行检查,以查看是否安装了紧凑框架。如果不是,我应该提示这些给他们,并将它们重定向到cf下载位置。



做最好的最常用的方法是什么?显然,如果没有安装.net cf,我的.net将不会运行,是否需要在eVc ++中编写?



非常感谢您对$ b的想法$ b Tony

解决方案

这是一个MSDN文章,关于创建一个检测和更新.NET Compact Framework的MSI软件包(如果需要的话)。它很旧,但原则仍然适用。你需要编写一个将在手机中运行的DLL。您首先搜索compact框架的dll文件,然后可以从注册表项获取版本。您还可以检测设备类型并安装相应的紧凑框架cab文件。



如果要使用cab文件进行操作,则该过程仍然相同。请参阅链接,了解如何运行设置文件一个cab文件。


Ive written an application using the .net compact framework. One of the requirements is that a check is run before app runs to see if the compact framework is installed. If not I should prompt this to them and redirect them to cf download location.

What would be the best most common approach to doing this. Obviously my .net wont run in the first place if .net cf is not installed, do i need to write this in eVc++?

Much appreciate your thoughts on the Tony

解决方案

This is an MSDN article about creating an MSI Package that detects and updates the .NET Compact Framework, if this is required. It is pretty old, but the principles still apply. You need to write a dll that will run in the phone. You first search for compact framework's dll files and then you can get the version from a registry key. You can also detect the device type and install the appropriate compact framework cab files.

If you want to do it with a cab file, the process is still the same. See this link on how you can run a set-up dll from a cab file.

这篇关于检测Compact Framewok是否安装在移动设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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