Detecting if the Compact Framewok is installed on mobile device

若如初见. 提交于 2020-01-15 06:55:29

问题


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


回答1:


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.




回答2:


Also check out Mobile Packager. We have used it to bundle multiple CAB deployment including .NET compact framework and only install it if it is not already installed.



来源:https://stackoverflow.com/questions/686651/detecting-if-the-compact-framewok-is-installed-on-mobile-device

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