PreviousNext
Help Library

Installing, Controlling, and Configuring Windows Services

InstallShield 2010

Project-Specific

Project

This information applies to the following project types:

Windows services are executable files that Windows–based systems run in the background to manage various system tasks, even if no user is currently logged in. A service is an executable file, but it must be designed as a service; you cannot automatically use an arbitrary executable file as a service. Windows services can be installed to run every time that the system starts or on demand when needed. InstallShield enables you to install new Windows services and configure existing services. Windows has a Services administrative tool with which you can view and configure the services that are installed on a system.

You can use the Setup Design view (in installation projects) or the Components view to create a component that installs, starts, stops, or deletes a service during installation or uninstallation. You can also use these views to configure extended service customization options that are available with Windows Installer 5.

Note that the service that you are starting, stopping, deleting, or configuring can either be already present on the target system during installation or uninstallation, or it can be installed as part of your installation.

Task

Task

To install, start, stop, delete, uninstall, or configure a service:

  1. In the View List under Organization, click Setup Design (for installation projects only) or Components.
  2. Create the component that you want to contain the service. For more information, see Using the Setup Design or Components Views to Create a Component.
  3. Add the service (a single executable file) to the component. For more information, see Adding Files to Components. The file must be an .exe file, since the Windows Installer does not support driver services.
  4. Make the executable file that contains this component’s service the component’s key file. For more information, see Component Key Files.
  5. Expand the component’s Advanced Settings item to view all of the advanced settings.
  6. Right-click the Services node and then click Add Service. InstallShield adds a new service.
  7. Type a new name for the service now, or click it and then press F2 later to rename it.
  8. The Services node in the Advanced Settings area is where you specify the required information about the service that is included in the selected component. To add the service information to the component, right-click the Services node and then click Add Service. Next specify the service name for the service that you are configuring. The name that you enter must match the name that is shown on the service’s Properties dialog box. (To access an installed service’s properties: In the Services administrative tool, right-click the service and then click Properties.)

  9. Select the service that you added, and then configure the settings that are displayed in the right pane as needed. For information about each of the settings, see Services Settings.
Note

Note

You must be familiar with the technical details of your service before you can configure its settings.

Tip

Tip

If configuring the service fails at run time, the installation may fail with an error message. ICE102 validates some of the service-related settings to help avoid such configuration failures. Therefore, it is recommended that you perform validation for your release.

Repeat the process for each service in this component’s key file.

See Also




Copyright Information | Contact Acresso Software