Installation rejected due to Error 2502 and Error 2503. What to do?

Installation of LibreOffice rejected due to Error 2502 and Error 2503.

What to do?

Can this help?

Internet, and Microsoft support forums in particular, are full of questions regarding these two errors going together. This is one of them. Its most helpful (judging by votes) replies suggest basically these things:

  1. Try resetting permissions to C:\Windows\Installer;
  2. Try running the installation as administrator.

The other suggestions there are re-register msiexec (I doubt it being useful, since msiexec is not a library, but an executable), and scan for viruses (might be useful). There are other suggestions out there, such as resetting permissions for C:\Windows\Temp. Anyway, this is clearly the Windows issue that may randomly hit any system and any MSI package, not specific to LibreOffice.