Differences

This shows you the differences between two versions of the page.

Link to this comparison view

chapi_-_command_line_creation_of_chapi_service [2019/01/30 09:22] (current)
Line 1: Line 1:
 +The CHAPI service should self-install when you run the .MSI installer for CHAPI, at times you may also not be able to manually register it via command-line using [[chapi_-_command_line_registration_of_chapi_service]] .
 +
 +
 +
 +==Prerequisites==
 +  * The CHAPI folder must exist and have the appropriate files in it.
 +  * The Chapi.ServiceHost.config must exist and contain the appropriate connection strings. 
 +
 +
 +
 +===== Creating the CHAPI.ServiceHost_12556 Service =====
 +
 +
 +
 +We will utilize the Windows command SC to create a new windows service named CHAPI.ServiceHost_12556. This merely adds the service into windows, you'll need to configure it to run automatically afterwards.
 +  - To register the service, Open a command prompt with Administrative level permissions.
 +  - Type the following command
 +    * <code>
 +SC Create CHAPI.ServiceHost_12556 binPath= "C:\Program Files (x86)\Cyrious\Control\Chapi\CHAPI.ServiceHost.exe" start= Auto
 +</code>
 +  - If successful, you will receive a message stating the **[SC] CreateService Success**.
 +  - You will need to manually start the service after creating it. 
 +
 +
 +
 +==Deleting the CHAPI.ServiceHost_12556 Service==
 +
 +
 +
 +At times you may want to manually delete the service from the windows service list. 
 +  - To delete the service, Open a command prompt with Administrative level permissions.
 +  - Type the following command
 +    * <code>
 +SC Delete CHAPI.ServiceHost_12556
 +</code>
 +  - If successful, you will receive a message stating the **[SC] DeleteService Success**.
 +
 +
 +
 +===== Source =====
 +
 +
 +
 +Contributor: Brandon Readlinger, Cyrious
 +
 +
 +
 +Date: 03/09/2016
 +
 +
 +