A service is a long running executable program that does not
support any user interface. A service program runs under the system account. The
system account is used by the operating system and by services that run under
Windows. The system account (Internal account) was designed since many services
and processes within Windows need the capability to log-in internally. ServiceProcessInstaller
class installs the windows service. While installing, it specifies the user
account under which the service will run. The instance of the
ServiceProcessInstaller takes a property of the type Account. Account is of the
type "ServiceAccount" which is of the type enum. The values of
ServiceAccount enum are shown below.
Enum Type
|
Description
|
LocalService
|
Uses anonymous credentials
|
LocalSystem
|
High privilege
|
NetworkService
|
Extensive local privileges
|
User
|
Very specific to user
|