Hi
I use TeXLive2005 and path to latex.exe is in PATH variable.
After run LyXWin137preSmall-0-6.exe appear a message:
No LaTeX-distribution could be found!...
I see in lyx_installer-small.nsi:
ReadRegStr $String HKLM "SYSTEM\CurrentControlSet\Control\Session
Manager\Environment" "Path"
StrCpy $Search "TeXLive"
In my opinion this is wrong way to recognize of TeXLive distribution.
TeXLive2003 had own installer, TeXLive2004 hadn't windows installer, but
later appear native windows installer: tlpm.exe (text mode) +
tlpmgui.exe (gui for tlpm.exe written in Tcl/Tk).
TeXLive2005 become with native wininstaller (new edition of tlpm.exe +
tlpmgui.exe).
I hope, that older version of TL aren't in use.
Several edition of TeXLive have different variables: TEXMF, TEXMFMAIN,
TEXMFCNF. In my opinion better way to recognize of TeXLive is recognize
environment variables TEX* depend on edition of TeXLive instead parsing
path for "texlive" string.
Environment variables of TeXLive 2005:
TLroot - path to root of TeXLive - used by installer, in my system:
C:\Apps\TL2005, default is C:\TeXLive2005
TEXMFCNF - in my system: C:\Apps\TL2005\texmf-var\web2c
Default path to executables is %TLroot%\bin\win32
Installer add variables in key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment
Sources of tlpmgui.exe are here: http://www.team-tl.livenet.pl/tlpmgui
or here: ftp://ftp.gust.org.pl/pub/Projekty/tlpmgui
file: tl100.zip
Second way is use UnxUtils (http://unxutils.sourceforge.net ) instead
minsys. UnxUtils contain nice command which.
Best regards
Tomasz
--
Tomasz Łuczak
TECHNODAT Sp. z o.o. tel +48 32 2382337
ul. Kościuszki 1c tel +48 32 3314484
44-100 Gliwice, PL mob +48 602 524713
http://www.technodat.com.pl http://www.emrm.pl