Add Method (item)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Add Method (item)
Adds a network or URL source to the source list of the installed product.
Declaration Syntax
C# Visual Basic Visual C++
public void Add(
	string item
)
Public Sub Add ( 
	item As String
)
public:
virtual void Add(
	String^ item
) sealed
Parameters
item (String)
Path to the source to be added. This parameter is expected to contain only the path without the filename.
Remarks

If this method is called with a new source, the installer adds the source to the end of the source list.

If this method is called with a source already existing in the source list, it has no effect.

Win32 MSI APIs: MsiSourceListAddSource, MsiSourceListAddSourceEx

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)