I need to get the SW installed in Windows Mach ?

  • Thread starter Thread starter Sats
  • Start date Start date
S

Sats

Hi
Can any one help me how to get the information about the
S/W installed in my Mach using the vb.net code...

Thanks in Advance,
Sats
 
Hi,

You can use the wmi to get that. Add a reference to
system.management.dll.

Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_Product")

moReturn = moSearch.Get

For Each mo In moReturn

Dim strOut As String = String.Format(" {0} - {1} ", mo("Name"),
mo("InstallDate"))

Debug.WriteLine(strout)

Next



Ken
 
Back
Top