22 janvier
Programmatic Remote MSI Installation in Windows - 2
WMI - Introduction
In an enterprise environment, WMI lets you to query and update information on clients machines and applications. It provides a standarize means for managing a system whether it is a local or in a network. Developers can use WMI programmatically by Windows Scripting, C++/VB and of course .NET.
WMI Installer Provider
It lets us to access and manage Windows Installer through WMI classes. Following are the core classes of WMI Installer Provider:
- Win32_Product
- Win32_SoftwareElement
- Win32_SoftwareFeature
The Win32_Product class contains methods to install, uninstall and uninstall an application programmatically.
In addition, Windows provides set of tools to manage WMI. These are:
- WMI CIM Studio, WMI Object Browser, WMI Event Registration and WMI Event viewer - see MSDN.
- WinMgmt.Exe - For manage
- WbemTest.Exe - WMI Tester tool
WMI in .NET
The System.Management class provides rich set of classes to manage WMI in .NET. See: MSDN Library or .NET SDK Documentation.
In the froser_foo thread, a sample code has been provided.
In the next series, I'll explain the problem I'm still facing with WMI Installer Provider in very detail.
C...U...