Class WindowsServiceInstaller
Installes Agent Service Windows service on the local machine.
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 |
---|---|---|
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 |
---|---|---|
IDictionary | stateSaver | An 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 |
---|---|---|
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 |
---|---|---|
IDictionary | savedState | An IDictionary that contains the state of the computer before the installers in the Installers property uninstall their installations. |