InstallService

Install Service

Related Topics Link IconRelated Topics

Definition

Use this command to install a service or a device for Windows. It is not recommended to install devices.
NetInstall Spy automatically creates this command.

Settings

Input

Please note that you should not fill in this dialog box manually; use the Browse button next to the first text box to find the service you want to install. All the other text boxes will be filled in automatically;
you can only change the login values.

  • Service name
    Specifies the service name in the service database. Click Browse to select a specific service from the service database. When the service name is displayed, all the other text boxes will be filled in automatically.
    The location of the service database is in the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
  • Display name
    Describes the service (full name). (This is the name displayed in the Services dialog box on the Control Panel.)
  • Module name
    Specifies the full path and the name of the service's executable file (.EXE).
  • Load ordering group
    Displays the load ordering group (all services can be grouped in load ordering groups). The list of available service groups is located in the registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceGroupOrder
    .
  • Depends on (groups)
    Displays the load ordering group the selected service depends on. The service will only run if at least one member of the group is running (after trying to start all services within a group).
  • Depends on (services)
    Displays the service the selected service depends on. The selected service will only run if this service is already running.
  • Service type
    Displays a bit pattern specifying the service type. Allowed values:
    1 (SERVICE_KERNEL_DRIVER)
    2 (SERVICE_FILE_SYSTEM_DRIVER)
    4 (SERVICE_ADAPTER)
    8 (SERVICE_RECOGNIZER_DRIVER)
    16 (SERVICE_WIN32_OWN_PROCESS)
    32 (SERVICE_WIN32_SHARE_PROCESS)

    Detailed information on the service types can be found in MSDN (CreateService).
    If you specify either 16 or 32, and the service is running in the context of the local system account, you additionally specify the following value by adding it: 256 (SERVICE_INTERACTIVE_PROCESS). Example: 16+256=272

  • ErrorControl
    Specifies the behavior of the service in case of an error during service startup.

Options

Start type
To change the start type of the service, select one of the following options:

Boot starts the service when the workstation is switched on.

System starts the service at operating system startup after the services with the start type Boot have been started.

Automatic starts the service automatically after the services with the start type Boot and System have been started.

Manual allows a user or a dependent service to start the selected service.

Disabled prevents the service from being started by a user. The service can only be started by the system.

Changing the start type of a service with the start types Boot or System can put the system into an unstable condition

Sign in
Determines whether a service logs in with a system account or with a user account. Most services log in with a system account.
(Apart from the DSM Runtime Service, the directory distribution service and the schedule service are usually the only Windows default services that log in with another user account).

System account
Select this login option if you want the service to log in using a system account. Check the Allow interaction with the desktop checkbox if the service may provide a user interface for every user who is logged in when the service is started.

Allow interaction with the desktop determines, if the service may provide a user interface for every user who is logged in when the service is started.

This account
Select this login option to assign a particular user account to a service. Enter the account name with the syntax Domain\UserID. Enter the password for the user account and confirm by re-entering it in the Confirm Password text box. Please note that password entries are case-sensitive.

Start service after successful installation
Starts the service immediately after it has been installed. Then you no longer need to use the command StartService.