How to use MSI properties in VBscript?
Could you tell me how we can use the properties of msi in VBscript.
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
bkelly
11 years ago
Posted by:
jaybee96
11 years ago
Example of usage:
Function TestScript() 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" End Function
Comments:
-
It looks like the session object is declared outside this function making this a bit incomplete as reference ;) - bkelly 11 years ago
Posted by:
Gary
11 years ago
you can use properties by adding it to command line during creating a vbscript.
Comments:
-
Hi Gary, Assume msi is already built. And based on some property values in msi, I would like to perform some task using vbscript. In this scenario how i can proceed. - rvprasad 11 years ago
Posted by:
anonymous_9363
11 years ago