Thanks to everyone at today's Adapt Your App: Installing and Distributing Windows Mobile Applications webcast. It was great session to wrap up what has been a great series (3-part Adapt Your App).
Here's some follow up materials from today's web cast.
Below is the C# code to determine if .NET CF 2.0 is installed. Note that this code is provided just to show how to retrieve the configuration XML and interpret the returned XML to determine whether .NET CF 2.0 is installed. It's not meant as a complete implementation to be used directly in your installation programs - in fact it can't be used directly since it's actually using .NET CF 2.0 features to determine if .NET CF 2.0 is installed. J I know it may seem odd but the point is to focus on where the info is located and how to interpret it. Had I shown the code in C++, the overhead of C++ and COM would likely have masked the core point which is the info available through the configuration XML.
XmlDocument configDoc = new XmlDocument();
configDoc.LoadXml(@"");
XmlDocument resultDoc = ConfigurationManager.ProcessConfiguration(configDoc, false);
XmlNode netCfNode =
resultDoc.SelectSingleNode(@"//characteristic [@type = 'Microsoft .NET CF 2.0']");
if (netCfNode == null)
MessageBox.Show("No .NET CF 2.0");
else
MessageBox.Show("Yes .NET CF 2.0");
For information on initiating a CAB install on a device from a desktop computer install (using MSI) - checkout
this article
And here are some relevant links regarding the configuration sytem.
List of Configuration Provider
Posted
Jun 28 2006, 02:12 PM
by
jim-wilson