[This is preliminary documentation and subject to change.]
The Media table describes the set of disks that make up the source media for the installation.
The Media table has the following columns.
Column | Type | Key | Nullable |
---|---|---|---|
DiskId | Integer | Y | N |
LastSequence | Integer | N | |
DiskPrompt | Text | Y | |
Cabinet | Cabinet | Y | |
VolumeLabel | Text | Y | |
Source | Property | Y |
Non-negative numbers only. Minimum value is 1.
Non-negative numbers only.
Sequence Numbers
The numbers in the LastSequence column specify which of the files in the File table are found on a particular source disk. Each source disk contains all the files whose sequence numbers (as shown in the Sequence column of the File table) are less than or equal to the value in the LastSequence column, and greater than the LastSequence value of the previous disk (or greater than 0, for the first entry in the Media table).
Cabinet Files
If the Cabinet name is preceded by an at symbol (@), the files referencing this Media table record are packed in a cabinet that is stored within a resource of the launching executable file.
Determining the SourceMode
The MSI Source Type Summary property determines the source mode for the current install. If this property is set to 2 or 3, a cabinet install is assumed. In this mode, the cabinet files are assumed to exist in the directory indicated by the SOURCEDIR property. If the Source Type value is 0 or 1, all source files are assumed to exist in the tree whose root is indicated by the SOURCEDIR property.
Note that this only applies to files in the File table that do not have either the Compressed or Uncompressed bits set in the attributes column. These bits override the value of the MSI Source Type Summary property when determining if a particular file is compressed or uncompressed.