21/01/2019

Install EXE as Windows Service

By Technical Digit

Follow below steps to install exe as Windows Service.

  1. Open Command Prompt as Administrator
  2. Run the following command:
sc create service_name binpath=C:pathtobinary [option1] [option2] [optionN]

Here is an example:

sc create RFSERVICE binPath="D:RFIDMultipleSocketServer.exe" ^ DisplayName="RFSERVICE" start=auto

If this worked you should see:

[SC] CreateService SUCCESS

You can delete a service by following command:

sc delete RFSERVICE
Total Views: 1598