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

Inheritance: System.Configuration.Install.Installer
Afficher le fichier Open project: eucalyptus/windows-integration

Méthodes publiques

Méthode Description
EucaWindowsServiceInstaller ( ) : System

Méthodes protégées

Méthode 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

Méthode 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 méthode

public EucaWindowsServiceInstaller ( ) : System
Résultat System

OnAfterInstall() protected méthode

protected OnAfterInstall ( IDictionary savedState ) : void
savedState IDictionary
Résultat void

OnAfterRollback() protected méthode

protected OnAfterRollback ( System savedState ) : void
savedState System
Résultat void

OnAfterUninstall() protected méthode

protected OnAfterUninstall ( System savedState ) : void
savedState System
Résultat void

OnBeforeInstall() protected méthode

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
Résultat void

OnBeforeRollback() protected méthode

protected OnBeforeRollback ( IDictionary savedState ) : void
savedState IDictionary
Résultat void

OnBeforeUninstall() protected méthode

protected OnBeforeUninstall ( IDictionary savedState ) : void
savedState IDictionary
Résultat void