1. Home
  2. Knowledge Base
  3. How to get information about software installed on Windows Mobile devices?

How to get information about software installed on Windows Mobile devices?

The best method is to ask the configuration service provider (CSP).

Step 1: Add Reference to Microsoft.WindowsMobile.Configuration
Step 2: Add the following statements at the top of the c# code file.

using System.Xml;
using Microsoft.WindowsMobile.Configuration;

Step 3: Prepare a csp string (.xml format) and pass it to the ProcessConfiguration method of ConfigurationManager. The return value is the xml string that contains all currently installed software on the device.

private void ListInstalledSoftwares()
{
string cspString = “<wap-provisioningdoc><characteristic-query type=”UnInstall”></characteristic-query></wap-provisioningdoc>”;
XmlDocument xmlResult = null;

// Use CSP to get list of installed applications
try
{
XmlDocument configDoc = new XmlDocument();
configDoc.LoadXml(cspString);
xmlResult = ConfigurationManager.ProcessConfiguration(configDoc, false);
Debug.WriteLine(xmlResult.InnerXml);
}
catch (Exception ex)
{
Debug.WriteLine(“Failed to get list of installed applications. CSP failure. [Exception: ” + ex.Message + “]”);
}
}

For more details on our products, click here 
If you need further assistance, please submit a ticket here

Was this helpful?
YesNo
Updated on June 2021