Click or drag to resize

ServiceInstallerEx Class

Defines an extended service installer class that can define service failure actions at install time.
Inheritance Hierarchy

Namespace: GSF.ServiceProcess
Assembly: GSF.ServiceProcess (in GSF.ServiceProcess.dll) Version: 2.4.205-beta
Syntax
public class ServiceInstallerEx : ServiceInstaller
View Source

The ServiceInstallerEx type exposes the following members.

Constructors
 NameDescription
Public methodServiceInstallerEx Creates a new ServiceInstallerEx.
Top
Properties
 NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event.
(Inherited from Component)
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Public propertyContextGets or sets information about the current installation.
(Inherited from Installer)
Public propertyDelayedAutoStartGets or sets a value that indicates whether the service should be delayed from starting until other automatically started services are running.
(Inherited from ServiceInstaller)
Public propertyDescriptionGets or sets the description for the service.
(Inherited from ServiceInstaller)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public propertyDisplayNameIndicates the friendly name that identifies the service to the user.
(Inherited from ServiceInstaller)
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyExecuteActionsOnNonCrashErrors Sets flag that determines when failure actions are to be executed.
Public propertyFailRebootMessage Sets the service fail reboot message.
Public propertyFailResetPeriod Sets the time after which to reset the failure count to zero if there are no failures, in seconds. Specify Infinite to indicate that this value should never be reset.
Public propertyFailRunCommand Sets the service fail run command.
Public propertyHelpTextGets the help text for all the installers in the installer collection.
(Inherited from Installer)
Public propertyInstallersGets the collection of installers that this installer contains.
(Inherited from Installer)
Public propertyParentGets or sets the installer containing the collection that this installer belongs to.
(Inherited from Installer)
Public propertyServiceNameIndicates the name used by the system to identify this service. This property must be identical to the ServiceName of the service you want to install.
(Inherited from ServiceInstaller)
Public propertyServicesDependedOnIndicates the services that must be running for this service to run.
(Inherited from ServiceInstaller)
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertyStartOnInstall Sets the boolean value to configure the service to start after it is installed.
Public propertyStartTimeout Sets the service start timeout in milliseconds.
Public propertyStartTypeIndicates how and when this service is started.
(Inherited from ServiceInstaller)
Top
Methods
 NameDescription
Public methodCommitWhen overridden in a derived class, completes the install transaction.
(Inherited from Installer)
Public methodCopyFromComponentCopies properties from an instance of ServiceBase to this installer.
(Inherited from ServiceInstaller)
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public methodDefineRecoverAction Defines a new recover action to be performed upon service failure.
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the Component and optionally releases the managed resources.
(Inherited from Component)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public methodInstallInstalls the service by writing service application information to the registry. This method is meant to be used by installation tools, which process the appropriate methods automatically.
(Inherited from ServiceInstaller)
Public methodIsEquivalentInstallerIndicates whether two installers would install the same service.
(Inherited from ServiceInstaller)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Protected methodOnAfterInstallRaises the AfterInstall event.
(Inherited from Installer)
Protected methodOnAfterRollbackRaises the AfterRollback event.
(Inherited from Installer)
Protected methodOnAfterUninstallRaises the AfterUninstall event.
(Inherited from Installer)
Protected methodOnBeforeInstallRaises the BeforeInstall event.
(Inherited from Installer)
Protected methodOnBeforeRollbackRaises the BeforeRollback event.
(Inherited from Installer)
Protected methodOnBeforeUninstallRaises the BeforeUninstall event.
(Inherited from Installer)
Protected methodOnCommittedRaises the Committed event.
(Inherited from Installer)
Protected methodOnCommittingRaises the Committing event.
(Inherited from Installer)
Public methodRollbackRolls back service application information written to the registry by the installation procedure. This method is meant to be used by installation tools, which process the appropriate methods automatically.
(Inherited from ServiceInstaller)
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Public methodUninstallUninstalls the service by removing information about it from the registry.
(Inherited from ServiceInstaller)
Top
Events
 NameDescription
Public eventAfterInstallOccurs after the Install(IDictionary) methods of all the installers in the Installers property have run.
(Inherited from Installer)
Public eventAfterRollbackOccurs after the installations of all the installers in the Installers property are rolled back.
(Inherited from Installer)
Public eventAfterUninstallOccurs after all the installers in the Installers property perform their uninstallation operations.
(Inherited from Installer)
Public eventBeforeInstallOccurs before the Install(IDictionary) method of each installer in the installer collection has run.
(Inherited from Installer)
Public eventBeforeRollbackOccurs before the installers in the Installers property are rolled back.
(Inherited from Installer)
Public eventBeforeUninstallOccurs before the installers in the Installers property perform their uninstall operations.
(Inherited from Installer)
Public eventCommittedOccurs after all the installers in the Installers property have committed their installations.
(Inherited from Installer)
Public eventCommittingOccurs before the installers in the Installers property committ their installations.
(Inherited from Installer)
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also