installer wipes out recent documents list and taskbar pins

Steps to reproduce (in Windows 10, or Win 7/8):

  1. Install TD
  2. Pin it to the taskbar
  3. Open several .toe files, pin some of them to the recent documents list
  4. Install new version of TD

The result is that there’s still a pinned entry on the taskbar, but its icon is gone, clicking it does nothing, and there are no recent documents.
If you unpin TD before the second install, you can still properly re-pin it, but the documents list is still gone.
This has been happening for at least a few years.