Home
To get a list of options, run the installer with -help.
Available options:
  • -install : triggers installation
  • -s, -silent : performs a silent installation without showing the UI
  • -d <directory> e.g. Sumatra-install.exe -install -d "c:\Sumatra PDF" sets the directory where the program is installed. The default is %LOCALAPPDATA%\SumatraPDF, or %PROGRAMFILES%\SumatraPDF with -all-users
  • -x : don’t install, extract the files extracts SumatraPDF.exe and the files it installs (libsumatrapdf.dll, PdfFilter.dll, PdfPreview.dll, sumatrapdf-tool.exe) into a sumatra-files directory under the current directory, or into -d <directory> if specified. With -d . (the executable’s own directory) SumatraPDF.exe is left in place and only the other files are unpacked. Errors are printed to the console if one is already attached.
  • -with-filter : install search filter
  • -with-preview : install the File Explorer preview pane handler for PDF and other supported files. Before 3.7 it also installed thumbnails
  • -uninstall : uninstalls SumatraPDF
Ver 3.2+
  • -log writes the installation log to %LOCALAPPDATA%\sumatra-install-log.txt. At the end of the installation, it opens the log file in Notepad.
Ver 3.4+
  • -all-users : installs system-wide, for all users installs to %PROGRAMFILES%\SumatraPDF and writes to the HKLM registry
Ver 3.6+
  • -fast-install : internal for auto-update. Starts installation with default options, and starts the app when installation is finished
Ver 3.7+
  • -no-desktop-shortcut : don’t create a desktop shortcut (the Install desktop shortcut option). An upgrade keeps the choice of the previous installation
  • -with-thumbnails : install File Explorer thumbnails for PDF and other supported files (the Let Windows show thumbnails option). An upgrade keeps the choice of the previous installation, and a preview or thumbnail handler another app (e.g. SageThumbs) registered in place of SumatraPDF’s