Could you tell me how we can use the properties of msi in VBscript.
I just posted a VBScript that displays all properties from an MSI file at http://www.itninja.com/blog/view/reading-an-msi-setup-with-vbscript
Example of usage:
ListBoxProperty = Session.Property("LISTBOXPROPERTY")
VersionNT = Session.Property("VersionNT")
Version9x = Session.Property("Version9X")
Password = Session.Property("PASSWORD")
NotePad = Session.Property("NOTEPADEXE")
MsgBox ("List Box: " & ListBoxProperty & vbCrlf _
& "VersionNT: " & VersionNT & vbCrlf _
& "Version9X: " & Version9x & vbCrlf _
& "Password: " & Password & vbCrlf _
& "Notepad: " & NotePad)
Session.Property("LISTBOXPROPERTY") = "GOODBYE"
you can use properties by adding it to command line during creating a vbscript.
Get the Platform SDK. In there (admittedly buried pretty deep) will be the Windows Installer SDK. In there, you'll find sample scripts for handling MSIs. The tables, including the Property table, can be queried using standard SQL syntax.
Sign up today to participate,
stay informed, earn points and establish a reputation for yourself!