The VBScript file WiLstScr.vbs is provided in the Windows SDK Components for Windows Installer Developers. This sample script demonstrates the Windows Installer script viewer.
The sample demonstrates the use of:
- OpenDatabase method (Installer Object)
- LastErrorRecord method of the Installer object
- OpenView method of the Database object
- Fetch method of the View object
- FormatText method
- FieldCount property
- StringData property of the Record object
- _TransformView table
Using this sample requires the CScript.exe version of Windows Script Host. To use CScript.exe to run this sample, type a command at the command prompt using the following syntax. Help is displayed if the first argument is /? or if too few arguments are specified. To redirect the output to a file, end the command line with VBS > [path to file]. The sample returns a value of 0 for success, 1 if help is invoked, and 2 if the script fails.
cscript WiLstScr.vbs [path to Windows Installer execution script]
Specify the path to the installer execution script.
For additional scripting examples, see Windows Installer Scripting Examples. For sample utilities that do not require Windows Script Host, see Windows Installer Development Tools.
Send comments about this topic to Microsoft
Build date: 8/13/2009
© 2009 Microsoft Corporation. All rights reserved.