Rate This Content
MSDN
MSDN Library
.NET Development
.NET Framework 3.5

  Switch on low bandwidth view

We were unable to locate this content in hi-in.

Here is the same content in en-us.

This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.Configuration.Install Namespace

The System.Configuration.Install namespace provides classes that allow you to write custom installers for your own components. The Installer class is the base class for all custom installers in the.NET Framework.

Through the Installers property, an installer contains a collection of other installers as children. As the installer is executed, it cycles through its children and calls Install, Commit, Rollback, or Uninstall. For an example of an object in the Installers collection, see EventLogInstaller.

The Context property contains information about the installation. For example, information about the location of the log file for the installation, the location of the file that saves information required by the Uninstall method, and the command line that was entered when the installation executable was run. For an example of an installation executable, see Installer Tool (Installutil.exe).

The Install, Commit, Rollback, and Uninstall methods are not always called on the same instance of Installer. For example, you might use an Installer to install and commit an application, and then release the reference to that Installer. Later, uninstalling the application creates a new reference to an Installer, which means that the Uninstall method is called on a different instance of Installer. For this reason, do not save the state of a computer in an installer. Instead, use an IDictionary that is preserved across calls and passed into the Install, Commit, Rollback, and Uninstall methods.

  ClassDescription
Public classAssemblyInstallerLoads an assembly, and runs all the installers in it.
Public classComponentInstaller Specifies an installer that copies properties from a component to use at install time.
Public classInstallContext Contains information about the current installation.
Public classInstallerProvides the foundation for custom installations.
Public classInstallerCollection Contains a collection of installers to be run during an installation.
Public classInstallEventArgs Provides data for the events: BeforeInstall, AfterInstall, Committing, Committed, BeforeRollback, AfterRollback, BeforeUninstall, AfterUninstall.
Public classInstallException The exception that is thrown when an error occurs during the commit, rollback, or uninstall phase of an installation.
Public classManagedInstallerClassInfrastructure. Represents a managed install.
Public classTransactedInstaller Defines an installer that either succeeds completely or fails and leaves the computer in its initial state.
  InterfaceDescription
Public interfaceIManagedInstallerInfrastructure. Provides an interface for a managed installer.
  DelegateDescription
Public delegateInstallEventHandler Represents the method that will handle the BeforeInstall, AfterInstall, Committing, Committed, BeforeRollback, AfterRollback, BeforeUninstall, or AfterUninstall event of an Installer.
  EnumerationDescription
Public enumerationUninstallAction Specifies what an installer should do during an uninstallation.
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker