Services View Settings

InstallShield 2020 Express Edition

Edition:The Express edition of InstallShield includes support for installing a service during installation, and removing the service during uninstallation. It also has support for optionally starting the service after installing it, starting it automatically every time that the system starts, or starting it on demand (when the service is requested through the Service Control Manager).

The Premier and Professional editions of InstallShield include additional flexibility for services. These editions enable you to start, stop, or delete the service during installation or uninstallation. These editions also let you configure extended service customization options that are available with Windows Installer 5. In addition, the Premier and Professional editions let you configure a service that is already present on the target system.

Tip:The View Filter at the top of the Services view lets you select a feature whose service data you want to display in the view. The View Filter lists your project’s hierarchy of features and subfeatures. Selecting a feature shows all of the services in that feature.

When you select a service in the Services explorer of the Services view, the following settings are available for you to configure.

Install Settings

Use the Install Settings area to specify information such as the display name and description of your service, as well as when the service should be started.

Install Settings

Setting

Description

Target

This setting indicates the executable file that contains the service. To modify this, click the ellipsis button (...) in this setting.

Display Name

Enter the name that you want to be displayed in the service control manager for this service. If you leave this setting blank, the service’s name (that is, the text that is used for the name of your service’s subnode under the Advanced Settings node) is used.

Description

Enter a description of the service. This description is registered on the target system when the service is installed, and it is displayed in the service control manager’s Description column. It is also displayed in the Description box on the General tab of the service’s Properties dialog box.

Service Type

Select the type of service that you are installing. Available options are:

Win32 that runs in its own process
Win32 that shares a process

The WIN32_OWN_PROCESS type of service contains the code for only one service. The WIN32_SHARE_PROCESS type of service contains code for more than one service, enabling them to share code.

Interact with Desktop

Specify whether the service interacts with the desktop. If your service has a user interface, select Yes.

If you select Yes, the User Name setting must be left blank, since the service will be installed to run in the built-in LocalSystem account.

Start Type

Specify when to start the service. Available options are:

Automatic—The service starts automatically when the system starts.
On Demand—The service starts when the service is requested through the service control manager.
Disabled—The service cannot be started.

Note that some services may support other start types (that is, during operating system initialization or by the operating system loader). However, these options are not available for the Start Type setting because the Windows Installer does not include support for them.

Error Control

Select the appropriate action that the service control manager should perform if the service fails to start. Available options are:

Log the error and continue
Log the error, display a message, and continue
Log the error and restart

Abort Install on Failure

Specify whether the entire installation should fail if the service cannot be installed on the target system. The default value is No.

Note:If you select Yes for this setting and end users run the installation in silent or basic UI mode, Windows Installer 3 or later must be present on the target system.

Load Order Group

Enter the name of the load-ordering group, if any, of which this service is a member.

Dependencies

Enter any service or load-ordering groups that this service requires. The system attempts to start the required service or at least one member of the load-ordering group before starting this service.

Separate multiple dependencies with a comma (,).

You must precede the name of each load-ordering group with the SC_GROUP_IDENTIFIER—which is typically the plus sign (+)—so that the service control manager can distinguish it from a service.

User Name

Enter the account under which the service will be logged on. To install the service under the local system account, leave this setting blank. (Microsoft does not recommend installing services that impersonate the privileges of a single user.)

If the service type is Win32 that runs in its own process, the value that you enter should use the following format:

DomainName\UserName

If the service will be logged on under the built-in domain, you can use the following format:

.\UserName

Password

Enter a password for this service. Leave this setting blank if the User Name setting is empty—that is, when the service is logged on under the local system account. The password is not used if you have not specified a user name.

Start Parameters

Enter any command-line parameters or properties that are required to run the service.

Start on Install

Specify whether you want to start the service during installation.

If you select Yes, use the Arguments setting to specify the arguments that you want to be passed to the service.

Arguments

Specify the arguments that you want to be passed to the service. Separate multiple arguments with a comma (,).

See Also