Open topic with navigation

# Install an IDOL Component as a Service on Windows

On Microsoft Windows operating systems, you can install any IDOL component as a Windows service. Installing a component as a Windows service makes it easy to start and stop the component, and you can configure a component to start automatically when you start Windows.

Use the following procedure to install Distributed Index Handler as a Windows service from a command line.

To install a component as a Windows service

1. Open a command prompt with administrative privileges (right-click the icon and select Run as administrator).
2. Navigate to the directory that contains the component that you want to install as a service.

3. Send the following command:

       Component.exe -install

   where `Component.exe` is the executable file of the component that you want to install as a service.

   The `-install` command has the following optional arguments:

   `-start {[auto] | [manual] | [disable]}` | The startup mode for the component. `Auto` means that Windows services automatically starts the component. `Manual` means that you must start the service manually. `Disable` means that you cannot start the service. The default option is `Auto`.
   `-username UserName` | The user name that the service runs under. By default, it uses a local system account.
   `-password Password` | The password for the service user.
   `-servicename ServiceName` | The name to use for the service. If your service name contains spaces, use quotation marks (") around the name. By default, it uses the executable name.
   `-displayname DisplayName` | The name to display for the service in the Windows services manager. If your display name contains spaces, use quotation marks (") around the name. By default, it uses the service name.
   `-depend Dependency1[,Dependency2 ...]` | A comma-separated list of the names of Windows services that Windows must start before the new service. For example, you might want to add the License Server as a dependency.

   For example:

       Component.exe -install -servicename ServiceName -displayname "Component Display Name" -depend LicenseServer

After you have installed the service, you can start and stop the service from the Windows Services manager.

When you no longer require a service, you can uninstall it again.

To uninstall an IDOL Windows Service

1. Open a command prompt.
2. Navigate to the directory that contains the component service that you want to uninstall.

3. Send the following command:

       Component.exe -uninstall

   where `Component.exe` is the executable file of the component service that you want to uninstall.

   If you did not use the default service name when you installed the component, you must also add the `-servicename` argument. For example:

       Component.exe -uninstall -servicename ServiceName

© 2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm