C# Class Com.Eucalyptus.Windows.EucaWindowsService.EucaWindowsServiceInstaller

Inheritance: System.Configuration.Install.Installer
Mostra file Open project: eucalyptus/windows-integration

Public Methods

Method Description
EucaWindowsServiceInstaller ( ) : System

Protected Methods

Method Description
OnAfterInstall ( IDictionary savedState ) : void
OnAfterRollback ( System savedState ) : void
OnAfterUninstall ( System savedState ) : void
OnBeforeInstall ( System savedState ) : void

two privileges are required to run the service: change admin's password and reboot by default, the local system can set the admin's password. It also has the privilege to reboot, but it's not enabled by default. So here the code includes the win32-way to "enable" that privilege.

OnBeforeRollback ( IDictionary savedState ) : void
OnBeforeUninstall ( IDictionary savedState ) : void

Private Methods

Method Description
AddEucalyptusToAdministrators ( ) : void
CreateEucalyptusAccount ( ) : string
DeleteEucalyptusAccount ( ) : void
ExistAccount ( ) : bool
LaunchEucaPostInstaller ( string exe, string arg ) : int
Log ( string msg ) : void
LogFailure ( string msg ) : void
QueryLocalWMICollection ( string query ) : System.Management.ManagementObjectCollection

Method Details

EucaWindowsServiceInstaller() public method

public EucaWindowsServiceInstaller ( ) : System
return System

OnAfterInstall() protected method

protected OnAfterInstall ( IDictionary savedState ) : void
savedState IDictionary
return void

OnAfterRollback() protected method

protected OnAfterRollback ( System savedState ) : void
savedState System
return void

OnAfterUninstall() protected method

protected OnAfterUninstall ( System savedState ) : void
savedState System
return void

OnBeforeInstall() protected method

two privileges are required to run the service: change admin's password and reboot by default, the local system can set the admin's password. It also has the privilege to reboot, but it's not enabled by default. So here the code includes the win32-way to "enable" that privilege.
protected OnBeforeInstall ( System savedState ) : void
savedState System
return void

OnBeforeRollback() protected method

protected OnBeforeRollback ( IDictionary savedState ) : void
savedState IDictionary
return void

OnBeforeUninstall() protected method

protected OnBeforeUninstall ( IDictionary savedState ) : void
savedState IDictionary
return void