How do I register a Bridge Windows Service Server for different instances?
  • 10 Jun 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

How do I register a Bridge Windows Service Server for different instances?

  • Dark
    Light
  • PDF

Article summary

<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;"></span><span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;"></span>A standard Windows Service can only be installed once. However, if multiple instances on a server want to use the Bridge Server, a separate Bridge Server Windows Service must be installed for each instance. This document describes how to do that.

With sc.exe, Windows Services can be registered with separate/display names. This is in contrast to InstallUtil.exe, which uses the default installation properties from the Windows Service itself.

Below describes the syntax for installing a Bridge Server Service for a development environment where the software is located in the subfolder 'dev' under Program Files. The service is given the display name 'NedFox Bridge Print Server - Dev'. This is the name as displayed in the grid of windows services via Services.msc.

sc create "NedFox.Bridge.Server.Service.Dev" DisplayName= "NedFox Bridge Print Server - Dev" binPath= "c:\Program Files (x86)\NedFox\Bridge Server\Dev\NedFox.Bridge.Server.WinService.exe" start= auto

The addition of '.Dev' after the 'create' command is just an example, it is the 'Service Name' value by which a Windows Service is registered. It can be any value as long as it is unique. The addition of '.Dev' in this example indicates that it is a Windows Service associated with 'Dev'.

The following command can be used to delete a registered Windows Service:

sc delete "NedFox.Bridge.Server.Service.Dev"

After this installation, the Bridge Print Server will be visible in the Windows Services and can be started. QA749 provides more information on the further installation and testing of it.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.