[Lazarus] Lazarus 2.0.10 corrupted by Win 10 crash, how to repair?

Bo Berglund bo.berglund at gmail.com
Thu Oct 29 10:51:59 CET 2020

On Thu, 29 Oct 2020 09:23:23 +0100 (CET), Michael Van Canneyt via
lazarus <lazarus at lists.lazarus-ide.org> wrote:

>> Grateful for any suggestions on how to fix this.
>> (I do not really want to start over from scratch after spending time
>> installing extra packages and customizations and the like).
>The packages should be OK. But as the names indicate, your input history is
>lost, and the environment options (essentially what you entered in tools -
>options) also.
>Just delete those 2 files.

Thanks Michael,
after doing that Lazarus starts up with the after-installation-dialog
where one can check the important paths etc.
Then I got to a pristine Lazarus but with my editor configurations
intact and the installed packages still there.
I could successfully build my project and run the resulting exe.
My custom desktop was gone so I re-created it and saved it.

I guess the custom desktops are saved in environmentoptions.xml... 

Lesson learned:
This is the second time Windows 10 crashed and trashed the
configuration fles, last time when using Lazarus 2.0.8.
>From now on I will make a backup copy of all of the files in the
config dir into a zipfile so I can resurrect a broken file after a

This thing with Windows crashing never happened in the many years I
used Windows 7, but in Dec 2019 I had to finally move to a new
notebook and of course now Win 7 is no longer available so I have Win

And that has caused all kinds of problems like the crashes I discuss
here but also a self-initiated reboot at irregular times purportedly
in order to "upgrade" the system....
And I have found no way to stop it from happening.

Win10 also triggers a start of a system backup at non-scheduled times
for unknown reasons. I have a scedule set for a backup to run on the
night between Friday and Saturday every week, but now it can start any
day at any time....
Soo strange.
When writing this I realized that I could of course have used the last
backup to get my original config files back, but I did not think as

I wish I could bring back Windows 7....

Of course on Linux this is not an issue at all, but if the target
programs are supposed to run on Windows I have no choice here.

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list