Main Menu
Home
Welcome
Sub Teams
News
FAQ
Search
Forum
Contact Us
Useful Links
Folding@Home Website
WU List
Stanford Server Status
Project Information
Official F@H FAQ
Official All Teams Stat
Official F@M Stat
EOC All Teams Stat
EOC F@M Stat
Statsman Top 1000 Stat
Statsman F@M Stat
Polls
How many computers do you have folding?
  
How many times do you check the your folding stats?
  
Run console client as a service using Microsoft Service Installer PDF Print E-mail

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

  • Change directory path
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

  • Install the service
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:

Command Prompt Screenshot Example

  • 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.

Registry Screenshot Example

  • 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

  • Remove the service
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