First you will need to install the Windows Resource Kit for your version of Windows.
Note: If the Resource Kit in unavailable, you can search Google.com for srvany.exe and instsrv.exe and place them in your ROOT folder. You will need to replace with in the following directions.
Note: Our root folder is "C:\WINNT", SERVICE_NAME refures to the service you wish to install
Open a command prompt window.
If you have installed the Resource Kit then navigate to the root folder of the Resource Kit folder, usually defaults to C:\Program files.
You must install the SRVANY service. At the command prompt type: INSTSRV SrvAny \srvany.exe
At that same prompt type: INSTSRV.EXE SERVICE_NAME \SRVANY.EXE
Now start the Registry Editor From the run box (BACKUP YOUR REGISTRY!!!!!)
Locate the following sub key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SERVICE_NAME and select it.
From the Edit pull down menu select New, select Key, and then type: Parameters
Select the new Parameter key, right mouse click, select New, select String Value, and type: Application
Right Mouse Click the new Application String, select Modify, and type the path to your application executable
Right Mouse Click the Parameter Key again, select New, select String Value, and type: AppParameters
Right Mouse Click the new AppParameters String, select Modify
Enter any application parameters you might have
Right Mouse Click the Parameter Key again, select New, select String Value, and type: AppDirectory
Right Mouse Click the new AppDirectory String, select Modify
type: the working directory
From the Start Menu go to Programs / Administrative Tools and Open the Services applet in Administrative Tools. Select SERVICE_NAME from the services window, right click on SERVICE_NAME, choose Properties, and under startup type select Automatic