Deploying the TCL Plugin

Revised Instructions (September 2020)

The Pale Moon browser can still use the Tcl Browser Plugin on current operating systems. Pale Moon is a fork of Firefox that chooses to retain older add-on technologies, such as XUL XPI extensions and NPAPI plugins.

On Linux

On Windows

        nptcl\
        install.js
        nptcl31.dll
        pluginhostctrl.dll
  • The default installation path for Pale Moon is
        C:\Program Files (x86)\Pale Moon
  • This directory has a subdirectory "browser". If it does not already exist, create a subdirectory "browser\plugins", i.e.
        C:\Program Files (x86)\Pale Moon\browser\plugins
  • Now copy the directory nptcl\ and the file nptcl31.dll from the unzipped XPI installer to Pale Moon's browser\plugins directory. The files install.js (XPI install script) and pluginhostctrl.dll (ActiveX adaptor for MSIE) are not required.

All Systems

Newer Builds

  • The plugin can be built from the sources available at https://sourceforge.net/projects/tclplugin/ , combined with a suitable basekit and stardll for the external Tcl/Tk interpreters.
  • On Linux, rebuilding with Tcl/Tk 8.5 or 8.6 is successful with minor patches. The upgrade from bitmap fonts to outline fonts on X11 systems is useful, but Tclets may need revision because the new default fonts have different sizes.
  • Builds with Tcl/Tk 8.7 complete successfully, but the resulting plugin does not work.

Older Instructions

General Instructions

Use the appropriate XPI at https://www.tcl-lang.org/software/plugin/ for Mozilla/Firefox.

http://plugindoc.mozdev.org/windows-all.html#TCL

Installing Tcl Plugin on Unices

LV How does one install the plugin in Mozilla or Netscape on Linux or Solaris?

JH If the appropriate XPI is not available, see the special notes regarding how to do this are also in the CVS area for those building it themselves.

Installing Tcl Plugin on Windows - Manual Method

See the manual install instructions at https://www.tcl-lang.org/software/plugin/download.html .

If you are intent on installing the 2.0 version, the instructions below may help.

Plugin v2.0 works with both Mozilla 1.x and IE 5.5+ on Windows. I prepared a zip file to make installation easy on today's systems [L1 ].

Essentially, there are five dll's:

 nptcl32.dll
 tcl80.dll
 tclpip80.dll
 tclreg80.dll
 tk80.dll

If you copy them to the Mozilla plugins directory, Mozilla will autodetect the plugin.

MS supposedly removed plugin support starting with IE 5.5 sp2. Actually, all they removed was autodetection. You will still find a plugin folder in the IE directory, and the plugin.ocx control is still in the Windows directory. So, to enable the plugin for IE, you only have to copy the dll's to the plugin directory, then add the appropriate Registry entries by hand.

Jason Summers describes the Registry edits at http://entropymine.com/jason/replug/pluginocx.html

See this page [L2 ] for help in re-enabling support for specific MIME types, which might be helpful for tclets. 10-10-2002 escargo)

The dll's can be obtained by downloading and running the old plugin installer for Windows.

My zip file above includes the dlls. The zip file also includes an installer script that copies the dll's to the plugin directories, and adds the appropriate Registry entries.

After installing the plugin, try it out at https://www.tcl-lang.org/software/plugin/applets.html .

Update - install.tcl changed as suggested by MRS below.

MRS Just a suggestion for non-english users, because the Program Files dir is different in other languages (Arquivos de programas in Portuguese, Programme in German, etc...)

So, change the install script line 31 from:

        set IEPluginDir "C:/Program Files/Internet Explorer/PLUGINS"

to:

        package require registry
        set ProgDir [registry get {HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\SFC} ProgramFilesDir]
        set IEPluginDir "$ProgDir/Internet Explorer/PLUGINS"

and the script will get the right name.

Michael Schlenker With Mozilla 1.2a on Windows 2000 i needed no restart, it simply worked after copying the bin dir of the plugin installation. I really like the frogger game. (Hmm, when i have time, i just have to program an EGO-Frogger, in 3D, with frog eye worldview.)


Configuration

jima: Any configuration hints ?

I installed the plugin for firefox following Brian Theado's advice in [L3 ] but have no clue on how setting policy to trusted. I would like to do some testing at home.

I seem not to be able to make it happen from reading docs about tcl pluging version 2.

Brian Theado - It's not clear to me where you are stuck. Does it help you to know that tclplugin.dll is a starkit (JH: actually a stardll) and the Tcl based files are all contained within the dll? You can use sdx to extract all the files from the dll (sdx unwrap tclplugin.dll). This will create a tclplugin.vfs directory where you can make your changes and then 'sdx sync tclplugin.vfs tclplugin.dll' will update the files in the dll.

JH: Version 3.1 changed the structure of the plugin to make the plugin runtime library split out onto disk, while tclplugin.dll still remains for the core Tcl/Tk stuff. This allows users to modify the plugin configuration without poking into the stardll.


Please Note: This page has been designed using information from the original Tcl Plugin page. If you are in the know, please feel free to adjust, simplify, clarify or update any or all of the information on this page.