Class WindowsServiceInstaller
Installes Agent Service Windows service on the local machine.
Inheritance
System.Object
WindowsServiceInstaller
Namespace: Nevatech.Vsb.Agent
Assembly: Nevatech.Vsb.Agent.dll
Syntax
public class WindowsServiceInstaller : Installer
Constructors
WindowsServiceInstaller()
Initializes new instance.
Declaration
public WindowsServiceInstaller()
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | True if managed resources should be disposed; otherwise, false. |
Install(IDictionary)
Configures service with command line parameters.
Declaration
public override void Install(IDictionary stateSaver)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | stateSaver | An System.Collections.IDictionary used to save information needed to perform a commit, rollback, or uninstall operation. |
OnBeforeInstall(IDictionary)
Performes service registration.
Declaration
protected override void OnBeforeInstall(IDictionary savedState)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | savedState | Contains the state of the computer before installers are installed. |
OnBeforeUninstall(IDictionary)
Sets the custom service name to service installer.
Declaration
protected override void OnBeforeUninstall(IDictionary savedState)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | savedState | An System.Collections.IDictionary that contains the state of the computer before the installers in the System.Configuration.Install.Installer.Installers property uninstall their installations. |