Quantcast
Channel: Zenoss Community: Message List
Viewing all articles
Browse latest Browse all 1118

Re: How to switch to WMI queries to Win32reg_AddRemovePrograms

$
0
0

Also found this info on it:

 

 

I would strongly recommend NOT using Win32_Product if you can avoid it. First, it is really, really slow. Second, and more significant is that you can screw up your system:

The Win32_Product class works by enumerating every MSI package that is installed on the system. When a package is touched, it performs a reconfiguration where the application is validated (and repaired if found to be inconsistent with the original MSI).

This can be a huge problem if you have applications that were configured after install (i.e. previously disabled services can be re-enabled, etc.)

As an alternative, you can do a search on a particular file and check its version to see if an application is installed. Here is a link to a blog post I did describing the technique (and also has a link to an article by Darren Mar-Elia discussing Win32_Product):

http://windowshell.wordpress.com/2010/07/08/wmi-query-for-an-installed-application/

source: http://serverfault.com/questions/203449/wmi-query-of-win32-product-creates-events-in-the-w2k8-application-event-log


Viewing all articles
Browse latest Browse all 1118

Trending Articles