Lightroom, Windows 10 and "Unexpected error opening catalog"

If you are using Adobe Lightroom 5 and have recently upgraded to Windows 10 (as 25 million people did), you may have seen this dreaded message while opening Lightroom, saying it can't open its catalog due to "unexpected error".

more