A
Alhambra Eidos Desarrollo
Hi mister,
I need use WMI for get list of applications installed.
This is my code:
ManagementObjectSearcher query = null;
ManagementObjectCollection queryAPPSCollection = null;
//ManagementScope msc = new ManagementScope("\\" + computer_name
+ @"\root\cimv2");
ManagementScope msc = new ManagementScope("root\\CIMV2");
string query_command = "SELECT * FROM Win32_Product";
SelectQuery select_query = new SelectQuery(query_command);
query = new ManagementObjectSearcher(msc, select_query);
queryAPPSCollection = query.Get();
foreach (ManagementObject mo in queryAPPSCollection)
{
when it executes foreach the application not responds !!!
Any solution about it ?? please...regards...
I need use WMI for get list of applications installed.
This is my code:
ManagementObjectSearcher query = null;
ManagementObjectCollection queryAPPSCollection = null;
//ManagementScope msc = new ManagementScope("\\" + computer_name
+ @"\root\cimv2");
ManagementScope msc = new ManagementScope("root\\CIMV2");
string query_command = "SELECT * FROM Win32_Product";
SelectQuery select_query = new SelectQuery(query_command);
query = new ManagementObjectSearcher(msc, select_query);
queryAPPSCollection = query.Get();
foreach (ManagementObject mo in queryAPPSCollection)
{
when it executes foreach the application not responds !!!
Any solution about it ?? please...regards...