ActiveTcl is a widely-used Tcl distribution. A Tcl script can be run as a Windows Service using FireDaemon Pro, which allows you to have the script start automatically at boot prior to login, start multiple instances of the script and more. This HOWTO will show you how to set it up. You can also use FireDaemon Fusion to manage FireDaemon and other Windows services via a web browser.


ActiveTcl Setup Under FireDaemon Pro

Download ActiveTcl from the ActiveTcl website.


By default ActiveTcl installs to "C:\Tcl" so for the purposes of this HOWTO, we will use that directory.


ActiveTcl has many executables that you can use, but the one you would use for most scripts is "wish85.exe"


Be sure to test your Tcl script via the command line before setting up FireDaemon Pro. If your script doesn't work from the command line, it won't work under FireDaemon Pro.


Download and install FireDaemon Pro into the directory of your choice, typically C:\Program Files\FireDaemon.


Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Adjust the paths to suit your installation. Note the required parameters.



  • Executable: The path to your wish86.exe file. For the purposes of this HOWTO, the path is C:\Tcl\bin\wish86.exe
  • Working Directory: The directory in which your Tcl script resides. For the purposes of this HOWTO, the path is C:\Tcl\bin.
  • Parameters: The name of your Tcl script including its extension (e.g. script.tcl)


Now click on the Settings tab. You can change the Process Priority to allocate more CPU time to ActiveTcl or specify which CPU or core ActiveTcl will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).



Now click on the Lifecycle tab. Make sure "Console Application" is checked.



Now click on the OK button to install and start your Tcl script!