Install Service Component Type

InstallShield 2022 » Component Wizard

Project:This information applies to the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module
MSI Database
MSM Database

Note:If you want to create a component that installs, starts, stops, or deletes a service during installation or uninstallation, you can use the Services view. You can also use this view to configure extended service customization options, which are not configurable through the Component Wizard. For more information, see Installing, Controlling, and Configuring Windows Services.

The Install Service component type is used to create a component that contains the information necessary to install all of the Win32 services that are present in a single .exe file.

Tip:If the file also runs as a COM server, a better way to create the component is to select the COM Server component type and specify that it contains a service. Once you have provided all the COM registration data, the Component Wizard will the prompt you for the same information about the service that you must provide for the Install Services component type.

The wizard takes you through a series of panels prompting you for information about the services you want to install. Once you have completed the wizard, you have a new component consisting of your file, the default component properties, and the advanced settings necessary for installing and uninstalling the services.

You can edit the services’ installation information in the Services node under the Advanced Setting area of the Components view. Windows Installer will pass these values to the Windows API function CreateService() to install each service onto the target system and register it with the Service Control Manager (which maintains the system’s database of services and exposes an interface for controlling these services).

See Also