The installation of a Windows service varies in complexity with the needs of the application, but usually involves the following activities:

There are many ways to perform these tasks. For example, an administrator can execute them manually. Another option is to write a script or program tailored to the needs of your application. Finally, you can build an installer using a developer tool such as InstallShield.

Selecting a User Account for the Service

Before installing a service, you should give careful consideration to the user account that will run the service. Unless your service has special requirements, we recommend that you use the built-in account that Windows provides specifically for this purpose. On Windows XP and Windows Server 2003, the fully-qualified name for this account is NT Authority\LocalService; in an English locale, its name is displayed as Local Service. On Windows Vista (or later), the account name is simply Local Service.

See Also