Install CoWeb (Swiki) as a Service

 
In order to get the most use from the CoWeb, it needs to run every time you start your computer, even if you are not logged in. These are called services.

Windows XP

Assume that you have your files in C:\ComSwiki.

  1. Run Swiki to set the port and set it to start when the program is launched.
    • Drag the Squeak.image onto Squeak.exe.
    • Choose the port and then start the service.
    • Verify that the Swiki runs on the correct port.
    • Click Save and Exit while the service is running.
  2. Set Swiki so that it will start just by running Squeak.exe
    • In the squeak.ini file, add the line ImageFile="squeak.image"
    • Run Squeak.exe and verify that the Swiki window launches and switches to "Run" automatically. Note: Now, if you try to start the Swiki by dragging Squeak.image onto Squeak.exe, you will get an error.
    • Stop Squeak
  3. Create the service:
    • Open a Command Window
    • Run a line similar to the following:
      • C:\ComSwiki\squeak -log: "C:\ComSwiki\log\log.txt" -service: "Swiki"
    • Notes:
      • "Swiki" is the name the service will show up as in the Services snap-in. You can make it whatever you want
      •  -log: "C:\ComSwiki\log\log.txt" is optional.
  4. Go to Start Menu=>Control Panel=>Administrative Tools and select Services. Find your newly created service, right click for properties, and change its startup type to "automatic."

Windows NT, 2000, and 2003

  1. Run Swiki to set the port and set it to start when the program is launched.
    • Drag the Squeak.image onto Squeak.exe.
    • Choose the port and then start the service.
    • Verify that the Swiki runs on the correct port.
    • Click Save and Exit while the service is running.
  2. Set Swiki so that it will start just by running Squeak.exe.
    • In the squeak.ini file, add the line ImageFile="squeak.image"
    • Run Squeak.exe and verify that the Swiki window launches and switches to "Run" automatically. Note: Now, if you try to start the Swiki by dragging Squeak.image onto Squeak.exe, you will get an error.
    • Stop Squeak
  3. Create the service by following Microsoft's procedure to create a user-defined service at http://support.microsoft.com/kb/q137890. You will need to download the proper resource kit for your version of Windows as you need the instsrv.exe program and srvany.exe program for your system.
  4. in the example below:
    • the resource kit is in C:\Program Files\Windows Resource Kits\Tools\
    • The service will be called CoWeb:8080 so that anybody looking in services will be reminded that this is the port that particular Swiki will run on.
    • The Squeak executables and image files in in D:\CoWeb\Aniwebs\
  5. In a Command window, enter the command line of "C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" CoWeb:8080 "C:\Program Files\Windows Resource Kits\Tools\srvany.exe". You should get the results shown below.

     
  6. Open Registry editor. Warning: Editing your registry can kill your machine permanently if you don't know what you are doing.

     
  7. Go to HKLM\SYSTEM\CurrentControlSet\Services\CoWeb:8080.
     
  8. Create a new key and rename it to Parameters.

     
  9. In the parameters, create a new String Value, call it Application and put the path to the Squeak executable.
  10. Go to Start Menu=>Control Panel=>Administrative Tools and select Services. Find your newly created service, right click for properties, and change its startup type to "automatic."

 

   

This site best viewed with browsers released in 2001 or later.

Original Content ©2001-2008 by Derrel Fincher, Other rights reserved by individual authors

Do you have suggestions, questions, or comments about anything you see here? Contact me.