FAQ Search FAQ#: 03-0014

Running AdvisorTrac as a Service

The AdvisorTrac server software is an application that runs when the administrator executes the application. You may as administrator desire to run the application when the machine is turned on. In order to do this, you need to run AdvisorTrac as a service.

This document describes some of the specifics regarding running the application as a service.

Service Mill

Service Mill is a 3rd Party application that provides an easy to use unterface for setting up any double-clickable application as a service. More information for Service Mill can be acquired at: http://www.activeplus.com/us/products/smill/.

Microsoft

Microsoft also provides a technical article on how an administrator might turn any application into a service using Srvany.exe:

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q137/8/90.asp&NoWebContent=1

Microsoft Windows Script - Install As A Service

The following is a sample of a windows script file that may be used on some Windows OS's to install the AdvisorTrac application as a service.  A corresponding script may be used to remove it.

Const OWN_PROCESS = 16

Const NOT_INTERACTIVE = True

Const NORMAL_ERROR_CONTROL = 2

strComputer = "."

Set objWMIService = GetObject("winmgmts:" & _

"{impersonationLevel=Impersonate}!\\" & strComputer & "\root\cimv2")

Set objService = objWMIService.Get("Win32_BaseService")

errReturn = objService.Create("AdvisorTrac", _

"AdvisorTrac", _

"C:\AdvisorTrac\Advisor.exe", _

OWN_PROCESS, _

NORMAL_ERROR_CONTROL, _

"Automatic", _

NOT_INTERACTIVE, _

".\LocalSystem", "")

Wscript.Echo errReturn

Microsoft Windows Script - Remove As A Service

strComputer = "."

Set objWMIService = GetObject("winmgmts:" _

& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colListOfServices = objWMIService.ExecQuery _

("SELECT * FROM Win32_Service WHERE Name = 'Advisor'")

For Each objService in colListOfServices

objService.StopService()

objService.Delete()

Next

Redrock Software Corporation