I'm pretty sure there used to be a "version" command in some of the later
versions of DOS and certainly in windows. In any case can't the Installer
make a system call and check which OS it's running under?
Lior
On Thu, 16 Jun 2005, Asger Ottar Alstrup wrote:
Helge Hafting wrote:
You may have to have one script for XP and another for win98,
unless lyx can deal with quoted filenames itself.
I don't know what other windows versions use, but I guess that
2000, 2003 and NT works like XP, with 95 and ME working like 98.
But that's just a guess.
Or you could try some magic with if statements to detect what it is up.
if "%~1"=="1" goto win95
echo winnt, win2000, winXP
goto end
:win95
echo win95, win98, win me
:end
This will detect which which windows version we are for all parameters,
except if passed the literal 1, which is unlikely to be used anyway.
Regards,
Asger