To install the Windows Service, follow these steps:
- Open a Command Prompt as administrator.
- Change to the correct drive (c:).
- Change to the directory where the windowsservice folder is (cd c:\datstat\windowsservice).
- Install the Service : sc create “DatStat Service” binpath= c:\datstat\windowsservice\datstatservice.exe (Notice there is a space between binpath= and the path).
- Open the Services management console.
- Find the DatStat Service.
- Double click on the service.
- Change the Startup Type from Manual to Automatic (Delayed).
- Start the service.