sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.35k stars 1.7k forks source link

Allow enabling/disabling thumbnails from settings #959

Open kjk opened 6 years ago

kjk commented 6 years ago

From https://forum.sumatrapdfreader.org/t/show-thumbnails-of-files-on-desktop/804/1

Currently it's only possible during installation. Make it possible to turn thumbnails generation on/off via settings.

gcormier commented 5 years ago

This would make installing via chocolatey that much better! :)

ottosax commented 4 years ago

The same here - I see the button "Options" and also click it, but I not "see" the thumbnail setting in this moment. ... after reading in the support forum I found my mistake, reinstall it and its fine.

But I think not less people will only uninstall it and leave sumatra ... that's bad. So a way to change this behavior also in the options section would be great, if possible. :-)

bitsydoge commented 4 years ago

I upvote that relatively old issue because I use sumatra via scoop and it could be nice to enable it after install

GitHubRulesOK commented 4 years ago

@Coldragon It is possible to register / deregister the dll after installation but it has to mess with the registry and it may not always know what User Access Controls are needed. If you need to register / deregister for portable use or for outlook or for moving exe between program folders with or without admin or elevated rights it can get very messy to allow for all options, especially if the previewer is locked by current focus, which then requires shutting down explorer windows and other background processes.

Thus, the recommended route is supposed to be adding during installation and removing during uninstall.

You can at your own risk try registering / deregistering the correct version dll manually.

So a user with enough / correct privilege who knows where they installed the file could run, possibly from an elevated administrator command prompt:- regsvr32 "C:\your path to\SumatraPDF\pdfpreview.dll" to register and corresponding the command to un(de)register is then regsvr32 /u "C:\your path to\SumatraPDF\pdfpreview.dll" however, it is at own risk and safest to uninstall re-install even if that can have its own issues. I will admit I am slovenly about uninstalling each daily version and simply accept the registry will need a clear out with all my reinstallations one on top of each other. (Don't do as I do....:-)

GitHubRulesOK commented 2 years ago

@kjk whilst this issue is for after the install event, during installation it is possible some thumbnail/previews need over-ride to avoid conflict with other already installed thus for djvu and epub it is possible a previewer/thumbnail provider is currently active, and I am unsure how you currently sniff for existing.