Helge Hafting wrote:
>> Thanks for the info, Helge. Just to make sure that I don't screw this
>> up, could you post the lyx.bat file you'd like for win98?
>>
>> Angus
>>
> This should work for win98:
> @echo off
> if "%LANG%"=="" SET LANG=fr_FR
> "C:\Program Files\LyX\bin\lyx.exe" %1 %2 %3 %4 %5 %6 %7 %8 %9

Excellent!

And is the existing .bat file OK on more modern Windows versions?

@echo off
if "%LANG%"=="" SET LANG=fr_FR
"C:\Program Files\LyX\bin\lyx.exe" %~1 %~2 %~3 %~4 %~5 %~6 %~7 %~8 %~9

If not, could you post that too. Sorry to be pedantic, but I'm truly 
ignorant.

> Don't hardcode the name "Program files", use what's
> actually there.  My win98 calls that "Programfiler" - which is a
> translated name.
> I believe windows have a way of getting the pathnames of standard
> directories
> like this one, otherwise no installers could work.  Don't ask me how
> though.

The installer does all the hard work of deciding what a sensible default 
should be. Ie, there's no 'C:\Program Files' anywhere in the installer 
script.

Thereafter, the installer allows you to reset its default installation 
root from C:\Program Files\LyX (on my machine). I simply pass this string 
to the function that generates the .bat file.

I'll just make this function a little more intelligent and interrogate the 
'ver' function to decide which flavour of batch file it should output.

> Helge Hafting
-- 
Angus

Reply via email to