To automatically update all available programs on my PC, I created a task “winget upgrade --all” in Windows Task Scheduler. Winget can install all updates on background, but it only supports installation with default settings. As a result, each time when SumatraPDF gets an update through winget, the file explorer thumbnailing function will be gone and I need to manually re-install the program again.
Strangely, in SumatraPDF installer the “show thumbnail” option is already turned on by default. Maybe WinGet skipped something when running the installer?