We could arrange things such that the program looks at its name and if it isn't called lyx.exe it behaves exactly as it does now, otherwise, after parsing the env vars, it prefixes the remaining parameters on the command line with "cmd /c lyxc.exe".
It becomes too magical then. I would prefer either 1. we keep it as it is (maybe change /var to -var), and pass cmd /c lyxc.exe explicitly, this allows some flexibility for the windows installer, and it is not terribly difficult to use. or 2. completely trnasform this to a lyx.exe that can take -var=val in additional to what the real lyx.exe is doing now.
Do you want me to make the change?
Yes, please. Bo