Windows Installer XML (WiX) toolset
Search

MediaTemplate Element

Description
MediaTeplate element describes information to automatically assign files to cabinets. A maximum of 999 cabinets will be created, based on the MaximumUncompressedMediaSize attribute value, the WIX_MUMS environment variable, or the default of 200MB. Note that MediaTemplate and Media cannot be used together in the same package. Explicitly authored DiskId values are ignored when using MediaTemplate.
Windows Installer references
None
Parents
Fragment, Product
Inner Text
None
Children
None
Attributes
Name Type Description Required
CabinetTemplate String Templated name of the cabinet if some or all of the files stored on the media are in a cabinet file. This name must begin with either a letter or an underscore, contain maximum of five characters and {0} in the cabinet name part and must end three character extension. The default is cab{0}.cab.  
CompressionLevel Enumeration Indicates the compression level for the Media's cabinet. This attribute can only be used in conjunction with the Cabinet attribute. The default is 'mszip'. Explicitly-authored compression level can be overridden with the WIX_COMPRESSION_LEVEL environment variable. This attribute's value must be one of the following:
high
low
medium
mszip
none
 
DiskPrompt String The disk name, which is usually the visible text printed on the disk. This localizable text is used to prompt the user when this disk needs to be inserted. This value will be used in the "[1]" of the DiskPrompt Property. Using this attribute will require you to define a DiskPrompt Property.  
EmbedCab YesNoType Instructs the binder to embed the cabinets in the product if 'yes'.  
MaximumUncompressedMediaSize Int Size of uncompressed files in each cabinet, in megabytes. WIX_MUMS environment variable can be used to override this value. Default value is 200 MB.  
VolumeLabel String The label attributed to the volume. This is the volume label returned by the GetVolumeInformation function. If the SourceDir property refers to a removable (floppy or CD-ROM) volume, then this volume label is used to verify that the proper disk is in the drive before attempting to install files. The entry in this column must match the volume label of the physical media.  
See Also
Wix Schema