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

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

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

- In the parameters, create a new String Value, call it
Application and put the path to the Squeak executable.

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