On 9/26/07, Hans Hagen
1) Why we need to set almost all in setuptex.bat, while the same vars (except Windows' PATH) are already set in texmf.cnf?
well, this is not recent, but has aways been the case; in setuptex i make sure that no conflicts can arise between different trees; so one can have multiple trees installed, without clashed; you don't wanna know what can happen (and how much time it costs to find out and fix) if some installer has set variables at the outer shell level; i just don't want to take any risk here
So what environment variables can I set globally to avoid the need for running setuptex.bat? My first guess is: OSFONTDIR=%SystemRoot%\fonts SETUPTEX=done CTXMINIMAL=yes TEXPATH=C:\...<whatever the path is>...\context\tex\ TEXMFMAIN=%TEXPATH%\texmf TEXMFOS=%TEXPATH%\texmf-mswin TEXMFPROJECT=%TEXPATH%\texmf-project TEXMFFONTS=%TEXPATH%\texmf-fonts TEXMFLOCAL=%TEXPATH%\texmf-local TEXMFEXTRA=%TEXPATH%\texmf-extra TEXMFCNF=%TEXPATH%\texmf{-local,}\web2c TEXPOOL=%TEXMFOS%/web2c\{$engine,} TEXFORMATS=%TEXMFOS%\web2c\{$engine,} MPMEMS=%TEXMFOS%\web2c\{$engine,} MPPOOL=%TEXMFOS%\web2c\{$engine,} Path=%TEXMFOS%\BIN;%Path% TEXMFCACHE=%TEMP% VARTEXMF=%TEXMFCACHE%\texmf-var TEXMF={$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN} TEXMFDBS=$TEXMF RUBYLIB=%TEXMFLOCAL%\SCRIPTS\CONTEXT\RUBY;