[Lazarus] RE : RE : language setup/http://bugs.freepascal.org/view.php?id=22574

Ludo Brands ludo.brands at free.fr
Mon Aug 13 17:03:12 CEST 2012


> 
> The need to specify such params should only apply to the 1st 
> start of an 
> installation (or a new primary-conf....)
>

Yes. A repair-install would also be a candidate to override settings. The
Lazarus installer doesn't have this option but other could have it.
 
> Once a config exists, the values are (IIRC) taken from there, and 
> updates (eg reset language) are to be made by the user.
> 
> There is no need to specify first time setup on the command 
> line. That 
> is what the environmentopts.xml in the exe directory 
> (secondary conf) is 
> for.
> If the IDE does not find a config, it looks for this.
> 
> So custom installers can provide there own settings there. 
> (by means of 
> editing the XML file, or replacing it (might loose new 
> settings added to it)
> 
That is what fpcup is currently doing and iirc codetyphon as well. Problem
is that the format of the XML file is nowhere specified and versions have
changed several times. Current version is "107". I'm not going to repeat all
the arguments you all mentioned against managing settings outside the IDE
and keeping the maintenance to a minimum but these are the same for this
feature request for 3rd party installers. A command line parameter, once
defined, is much more stable than an undocumented XML file. As usual, I'm
willing to make a patch for that provided there is a broad consensus for it.


Ludo





More information about the Lazarus mailing list