Deployment Tools Foundation
Add Method (item)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► SourceMediaList ► Add(MediaDisk)
Adds or updates a disk of the media source for the product or patch.
Declaration Syntax
Parameters
- item (MediaDisk)
Remarks
To change the disk prompt only, get the existing volume label from the registry and provide it in this call along with the new disk prompt. Passing a null or empty string for volumeLabel registers an empty string as the volume label.
To change the volume label only, get the existing disk prompt that is registered and provide it when calling SourceListAddMediaDisk along with the new volume label. Passing null or an empty string registers an empty string as the disk prompt.
Win32 MSI API: MsiSourceListAddMediaDisk