Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Installer.Installers Property


Gets the collection of installers that this installer contains.

Namespace:   System.Configuration.Install
Assembly:  System.Configuration.Install (in System.Configuration.Install.dll)

public InstallerCollection Installers { get; }

Property Value

Type: System.Configuration.Install.InstallerCollection

An InstallerCollection containing the collection of installers associated with this installer.

The Installers property contains a collection of installers that install objects needed by this Installer instance to correctly install the component. The Install, Commit, Rollback, and Uninstall methods of the Installer class go through the collection of installers and invokes the corresponding method of each installer.

If this instance of Installer is contained in an installer collection, the Parent property is the Installer instance that contains the collection. For an example of the use of the Installers collection, see the AssemblyInstaller class.

The following example demonstrates the Installers and Parent properties. The Installers property shows the InstallerCollection associated with an Installer.

AssemblyInstaller myAssemblyInstaller = new AssemblyInstaller();
ServiceInstaller myServiceInstaller = new ServiceInstaller();
EventLogInstaller myEventLogInstaller = new EventLogInstaller();

InstallerCollection myInstallerCollection = myAssemblyInstaller.Installers;

// Add Installers to the InstallerCollection of 'myAssemblyInstaller'.

Installer[] myInstaller = new Installer[2];
// Show the contents of the InstallerCollection of 'myAssemblyInstaller'.
Console.WriteLine("Installers in the InstallerCollection : ");
for (int iIndex=0; iIndex < myInstaller.Length; iIndex++)

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft