Add Method (item)

Microsoft Deployment Tools

Deployment Tools Foundation Add Method (item)
Adds or updates a disk of the media source for the product or patch.
Declaration Syntax
C# Visual Basic Visual C++
public void Add(
	MediaDisk item
)
Public Sub Add ( _
	item As MediaDisk _
)
public:
virtual void Add(
	MediaDisk item
) sealed
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

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)