Service Control Properties

A service Control Operation allows you to control the service's behavior after it is installed.

Service Control Operation

Service Name

This field contains the name of the controlled service. This string can be localized and it can contain installer properties. You may choose a service to be installed from the combo box or you can enter the name of a service already installed on the target machine.

Attached Component

In this field, you can specify the component which will contain the control operation. You may choose it from the drop-down list box which contains all the package's components.

Actions on install

There are three available options for your service after it is installed:

  • Start - the service will start
  • Stop - the service will stop
  • Delete - the service will be removed

NoteIf all three options are checked, the existing service will be stopped and removed and the service in the package will be installed and started.

Actions on uninstall

There are three available options for your service when it is uninstalled by your installation package:

  • Start - the service will start
  • Stop - the service will stop
  • Delete - the service will be removed

NoteFor the package's uninstallation, you can only start a service which will still be present on the target machine after the uninstall is complete.

Service Parameters

In this section, you can specify a list of arguments separated by [~] which will be executed when the service starts. You can localize the value of these arguments. This field is of Formatted Type and can be edited using Smart Edit Control

ImportantIn case of Merge Module projects the following attributes can be made configurable at merge time:

  • Name
  • Events
  • Argument
  • Wait

Wait until the service completes

If this option is enabled, the installer will wait a maximum of 30 seconds for the service to complete before continuing. This delay can be used to wait an additional amount of time in case a critical event returns a failure error.

If this option is disabled, the installer will wait until the Service Control Manager (SCM) reports that the service is in a pending state before proceeding.

TipFor more information about the resources and attributes that can be configured, please see: Configurable Merge Modules Page.