\
Tips and Tricks
Tools
MSI (Windows Installer) Platform SDK
SDK SAMPLE MSI VB SCRIPTS
SDK: WiMakCab.vbs
| WiMakCab.vbs (SDK Sample Script) |
This is an sample VBSCRIPT installed into the "C:\Program Files\Microsoft Platform SDK\Samples\SysMgmt\Msi\Scripts" directory via the "Platform SDK".
Windows Installer utility to generate compressed file cabinets from MSI database
The 1st argument is the path to MSI database, at the source file root
The 2nd argument is the base name used for the generated files (DDF, INF, RPT)
The 3rd argument can optionally specify separate source location from the MSI
The following options may be specified at any point on the command line
/L to use LZX compression instead of MSZIP
/F to limit cabinet size to 1.44 MB floppy size rather than CD
/C to run compression, else only generates the .DDF file
/U to update the MSI database to reference the generated cabinet
/E to embed the cabinet file in the installer package as a stream
/S to sequence number file table, ordered by directories
/R to revert to non-cabinet install, removes cabinet if /E specified
Notes:
In order to generate a cabinet, MAKECAB.EXE must be on the PATH
base name used for files and cabinet stream is case-sensitive
If source type set to compressed, all files will be opened at the root
(The /R option removes the compressed bit - SummaryInfo property 15 & 2)
To replace an embedded cabinet, include the options: /R /C /U /E
Does not handle updating of Media table to handle multiple cabinets
Copyright (C) Microsoft Corporation. All rights reserved.