Show Installed MSI Packages ?

  • Thread starter Michael Petersen
  • Start date
M

Michael Petersen

Hy,

How can show Installed MSI Packages on a NT4 / W2K / Xp Windows System with
Command line tool ?
(Resource KIT ? )

Regs.

Michael
 
T

Torgeir Bakken (MVP)

Michael said:
How can show Installed MSI Packages on a NT4 / W2K / Xp Windows System with
Command line tool ?
(Resource KIT ? )

Hi

I haven't seen a command line tool for this, but you can use e.g. vbscript (put
the code below in a .vbs file). To have the output in a command prompt, use
cscript.exe to run the vbscript file.


Set oMsi = CreateObject("WindowsInstaller.Installer")

On Error Resume Next
For Each sProduct in oMsi.Products
sProdName = ""
sProdName = oMsi.ProductInfo(sProduct, "InstalledProductName")
If sProdName <> "" Then
WScript.Echo sProduct & vbTab & sProdName
End If
Next
On Error Goto 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top