Installer.Install Method (IDictionary)
When overridden in a derived class, performs the installation.
Assembly: System.Configuration.Install (in System.Configuration.Install.dll)
Notes to Inheritors:
If you override the Installers property of this instance. After the contained installers run, this method updates the IDictionary object (specified through the stateSaver parameter) to reflect the status of the installation. The IDictionary should be empty when passed to the method. If all the methods succeed, the Commit method is called. Otherwise, the Rollback method is called.method in a derived class, be sure to call the base class's method first in your derived method. The method calls the method of each installer contained in the
If you need to add installer instances to the Installers collection in the method, be sure to perform the same additions to the collection in the Uninstall method. However, you can avoid maintaining the collection in both methods if you add installer instances to the Installers collection in the class constructor for your custom installer.
' Override the 'Install' method of the Installer class. Public Overrides Sub Install(mySavedState As IDictionary) MyBase.Install(mySavedState) ' Code maybe written for installation of an application. Console.WriteLine("The Install method of 'MyInstallerSample' has been called") End Sub 'Install
Available since 1.1