|
Run console client as a service using Microsoft Service Installer |
|
|
|
The following instruction is for those that are comfortable with
editing the windows registry. Microsoft has a service installer that is
packaged with the Windows Server Resource Kit that will work on Windows
2000 and Windows XP. You can download the whole package from Microsoft's web site. It includes many other tools and all you really need is the instsrv.exe and srvany.exe file, which is included here for you to download if you do not want to get the full Resource Kit.
This
setup is only possible if you use the text-only console client and
have finished setting up the client by going through the configuration
steps as explained on the 'How to configure the text-only console client?'FAQ.
Copy
the two files instsrv.exe and srvany.exe into the same directory as
your text-only console client. In this example, I will use the
directory "C:\fah". Start your Command Prompt window by clicking on Start > All Programs > Accessories > Command Prompt
In
your Command Prompt window, change the directory to the location of the
text-only console client. In this case, we will use "C:\fah".
Command: cd \fah
In
your Command Prompt windows, type in the following command to install
the service in the registry. In this example, we will use the service
name fh. You can use any service name of your liking as long as
it is not a name in used already. We recommend that you use a short
name.
Command: instsrv fh "C:\fah\srvany.exe"
If everything goes well, you will see the following message:
The service was successfully added!
Make sure that you go into the Control Panel and use
the Services applet to change the Account Name and
Password that this newly installed service will use
for its Security Context.
Example Screenshot:

- Edit the windows registry
In your Command Prompt window, type in the following command to start
the Registry Editor. IMPORTANT: Please take the necessary precaution
step to back up your registry before proceeding.
Command:
regedt32
In your Registry Editor, navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\fh
Add a new key under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\fh by clicking on Edit > New > Key. Name it:
Parameters
Add the following String Values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\fh\Parameters by clicking on Edit > New > String Value with the Value data as shown below:
Value Name: AppDirectory
Value Data: c:\fah
Value Name: Application
Value Data: c:\fah\FAH502-Console.exe
Value Name: AppParameters
Value Data: -local -service -advmethods
Notice that AppParameters is where you will put in the switches that you want to use when the client is started. The -service
switch must be entered regardless. Below is a screenshot of what you
will have after you have completed the steps detailed above.

- Start and Stopping the service
At this point, the service is successfully created.
To start the service, type in the following command in your Command Prompt window:
net start fh
To stop the service, type in the following command in your Command Prompt window:
net stop fh
You only have to do this step if you would like to remove the service
that you have added above. To remove the service, you must stop the
service first. Open the Command Prompt window, change the directory
to the location of the
text-only console client, and then type in the following command in your
Command Prompt window.
Command:
instsrv fh remove
|