Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Executables in Win2k now need extensions

Closed / Fixed633326ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-11-04 15:31:06
I installed ActiveTcl 8.4.1.0 and after the install my PC 
does not seem to be able to recognize .exe and .bat 
files unless I explicitly specify them.  I installed 
ActiveTcl 8.4.1.0 on Win2k machines and had the exact 
same problem.  This is a rather disturbing one.
hobbs Ticket [633326ffff]: 2 changes [History diff]2002-11-05 03:44:39
hobbsplain2002-11-05 03:44:41
Logged In: YES 
user_id=72656

This is related to ActiveTcl install only, not Tcl.
andreas_kupriesplain2002-11-05 03:59:02
Logged In: YES 
user_id=75003

The proper place to report this bug would have been 
http://bugs.activestate.com/ as this pertain to ActiveState's 
ActiveTcl, and not the Tcl core in itself.

When installing ActiveTcl we extend the PATHEXT variable in 
the environment so that Windows recognizes '.tcl' as 
executable files.

For a personal installation (default) we extend PATHEXT in 
the user environment. For a system installation we modify the 
system global PATHEXT.

Older installers had a bug in the personal installation. If no 
PATHEXT was present they created it, and added '.tcl'. But 
this was not enough, because the user PATHEXT 'overides' 
the system values. Because of that the system 'forgets' .exe, 
etc. for the user doing the installation.

This problem was specifically fixed for ActiveTcl 8.4.1.0 (and 
8.3.5.0). Our fix was to not only create the user PATHEXT, 
but to place '%PATHEXT%' into its contents. This way it 
always inherits the current contents of the system PATHEXT, 
never forgetting the existing information.

Note: Before ActiveTcl 8.4.1.0 we had ActiveTcl 8.4.0.1. This 
version had the bug in the installer as described above. 

To work around your problem go to the control panel, sub-
panel system, advanced, environment variables, and add %
PATHEXT% to the defintion of PATHEXT in the 'User 
Variables'.
hobbsplain2002-11-23 09:08:29
Logged In: YES 
user_id=72656

This has been corrected in the latest builds that are now up 
from ActiveState.  You can also just delete the user local 
PATHEXT var to restore what you need.
Log in (anonymous is fine) to add a comment.