I think it was this one: https://forum.lazarus.freepascal.org/index.php/topic,47480.msg340134.html#msg340134 although I remembered it differentyl. Some config files are mentioned there, but Martin warned that environmentoptions (which contains most of your requests) will make trouble because it contains the FPC path.
Thanks a lot, wp for finding that link. Martin mentioned there 2 files namely:
-
environmentoptions.xml: I had a close look into it. It contains 5 path's to Lazarus, Compiler, FPC-Sources, Make and the Debugger. Of course they must be correct. But in every case, where I copied a formerly Lazarus config folder over a just new installed Lazarus config folder, at the 1st Lazarus start I got a dialog (see attached Lazarus_IDE_config.png) to configure this 5 path's. So from my evaluation, it is no problem to copy the whole environmentoptions.xml,
if afterwards this dialog appears and you check/adapt this 5 path's.
If this opinion should be wrong, I would be very interested to hear from that, thanks. -
editoroptions.xml: although Martin wrote, this file should be fine to copy, it includes the path to the Code Templates Module. So my recommendation would be, after having copied this file, to start Lazarus / Menu Tools / Code Templates / and to adapt the path in "Module" from the old Lazarus config folder to the new one to avoid later problems (e.g. if you someday delete the old config folder).
And Martin wrote there, that many other of the XML-files should be fine to copy (which gives me hope).
Ideally somebody should write a program and make it available which copies these files and makes path adjustments if required.
That would be great (I would buy it immediately). There exists already a "Lazarus config folder upgrade dialog" (see attached Lazarus_incorrect_config.png) which appears, when you start Lazarus after having copied an older Lazarus config folder over the current one. Initially I expected, that this dialog would adapt everything necessary...
The post https://forum.lazarus.freepascal.org/index.php/topic,46436.msg331534.html#msg331534 refers to a program for creation of a portable Lazarus version, but it must also copy config files and should contain much to learn from.
Thanks for that info too. I looked into this program and as far as I understood, it makes the following changes to the Lazarus config folder (and a couple of things outside this folder):
- adapt Compiler path in environmentoptions.xml
- delete the history of Lazarus, Compiler, FPC-Sources, Make the Debugger and some more in environmentoptions.xml
- adapts something in onlinepackagemanager\config\options.xml
- adapts CodeTemplateFileName in editoroptions.xml
So the only thing we did not already know is to adapt onlinepackagemanager\config\options.xml