Create or Delete Windows Services
Service Creation
The MineMarket installation package can only be used to install a single instance of MineMarket on a machine. Multiple installations may be considered for testing environments or for demonstration purposes. If multiple installations of MineMarket are required on one machine, services must be manually created.
The Microsoft Service Control (SC) utility can be used to create a new MineMarket Services or MineMarket Marketing Service. Creating a MineMarket Search Service requires a different command.
Service Deletion
The MineMarket installation package can be used to delete an entire MineMarket installation; however, cannot be used to delete manually created services.
Services cannot be deleted via the Microsoft Services screen. The Microsoft Service Control (SC) utility can be used to delete services.
Microsoft Service Control (SC) Utility
For further information about the SC command, see https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/sc-create.
However, as a minimum, note the following:
- There must be a space after each equal sign (=) in the SC command.
- There is a difference between a service's name and its display name. To identify a service name, right-click the service name, select Properties and locate the actual service name.
- If a service name includes any spaces, enclose the service name in double quotation marks; for example, "MineMarket Service".
To create a MineMarket Service:
- Start Windows Command Prompt.
- Enter the following script:Copy
sc create NewMineMarketServiceName binPath= "MineMarketServicePath\BulkTrak.Service.exe" DisplayName= NewMineMarketServiceDisplayName start= demand
Where:
- sc create—Uses the Service Configuration utility to create a Windows Service
- NewMineMarketServiceName—Name of the new MineMarket Service
- NewMineMarketServiceDisplayName—Display name of the new MineMarket Service
- Press the Enter key.
- Configure the MineMarket Service, using unique port numbers. See MineMarket Service Configuration and Default Port Numbers.
To create a MineMarket Marketing Service:
- Start Windows Command Prompt.
- Enter the following script:Copy
sc create NewMineMarketMarketingServiceName binPath= "MineMarketMarketingServicePath\BulkTrak.MarketingService.exe" DisplayName= NewMineMarketMarketingServiceDisplayName start= demand
Where:
- sc create—Uses the Service Configuration utility to create a Windows Service
- NewMineMarketMarketingServiceName—Name of the new MineMarket Marketing Service
- NewMineMarketMarketingServiceDisplayName—Display name of the new MineMarket Marketing Service
- Press the Enter key.
- Configure the MineMarket Marketing Service and its port numbers. See MineMarket Marketing Service Configuration.
To create a MineMarket Export and Reports Service:
- Start Windows Command Prompt.
- Enter the following script:Copy
sc create NewMineMarketExportAndReportsServiceName binPath= "MineMarketExportAndReportsServicePath\BulkTrak.ExportAndReportsService.exe" DisplayName= NewMineMarketExportAndReportsServiceDisplayName start= demand
Where:
- sc create—Uses the Service Configuration utility to create a Windows Service
- NewMineMarketExportAndReportsServiceName—Name of the new MineMarket Export and Reports Service
- NewMineMarketExportAndReportsServiceDisplayName—Display name of the new MineMarket Export and Reports Service
- Press the Enter key.
- Configure the MineMarket Export and Reports Service and its port numbers. See MineMarket Export and Reports Service Configuration.
To create a MineMarket Search Service:
- Start Windows Command Prompt.
- Navigate to the folder where the MineMarketSearchSvc.exe file is located.
- Enter the following script:Copy
MineMarketSearchSvc.exe -i -d=MSMQ -n=NewMineMarketSearchServiceName -disp=NewMineMarketSearchServiceDisplayName
Where:
- -i—Installs the Windows Service
- -d=MSMQ—Creates a dependency on the Microsoft Message Queuing service
- -n=NewMineMarketSearchServiceName—Name of the new MineMarket Search Service
- -disp=NewMineMarketSearchServiceDisplayName—Display name of the new MineMarket Search Service
Important: Unlike when using the SC command, there should be no space after each equal sign (=).
- Press the Enter key.
- Configure the MineMarket Search Service and its port numbers. See MineMarket Search Service Configuration.
To delete a service:
- Start Windows Command Prompt.
- Enter the following script:Copy
sc delete Service
Where:
- sc delete—Uses the Service Configuration utility to delete a Windows Service
- Service—Service name
Important: There is a difference between the service name and the service display name.
To identify the service name, right-click the service name, select Properties and locate the actual service name. If the service name includes any spaces, enclose the service name in double quotation marks; for example, "MineMarket Service".
- Press the Enter key.