Resolution:
After make sure that the run.bat starts the CA without error, perform the steps below.
1. Shutdown the Stat Central Agent which is currently running.
2. Edit <STAT_HOME>/app/bin/service/service.bat and set:
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_121
set PATH=%JAVA_HOME%/bin;%PATH%
3. If already installed then uninstall the service first:
C:> service uninstall
4. Install the service running the command below from a command line (cmd):
C:>service install /controller localhost:9990 /user jboss /password irv200038stat+
5. Start the service from windows service or by the command:
C:> service>service start.
6. All should be fine, you should see the service name in Services and the CA up and running.