views:

1671

answers:

1

Hi There, 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

+2  A: 

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.

kgiannakakis