How to check programmatically if Sumatra is installed? #2855
-
|
We are developing a LaTeX IDE and are using DDE commands to communicate with Sumatra. What would be the best way for us to check if Sumatra is installed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
the registry keys should be there it is only the single user installs that do not need to be registered so for example the last entry in current log is They can vary by version and registered file types so machine or user pdf is the most relevant for LaTeX remember that DDE service is not available until exe is first invoked (i.e. not detectable before exe run time) so again a good location to look for the exe is like many apps the uninstall location HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Uninstall\SumatraPDF, DisplayIcon, c:\program files\SumatraPDF\SumatraPDF.exe However note that many users dont need to install that is only needed for windows search and pre-viewer. so in such cases the user may (or may not) assign pdfviewer by right click. |
Beta Was this translation helpful? Give feedback.
the registry keys should be there it is only the single user installs that do not need to be registered so for example the last entry in current log is
HKEY_CURRENT_USER, Software\Classes\MIME\Database\Content Type\application/pdf, Extension, .pdf
but a more natural one earlier is
HKEY_CURRENT_USER, Software\Classes\SumatraPDF.pdf\Application, ApplicationName, SumatraPDF
or perhaps better
HKEY_LOCAL_MACHINE, Software\Classes.pdf\OpenWithProgids, SumatraPDF
They can vary by version and registered file types so machine or user pdf is the most relevant for LaTeX
remember that DDE service is not available until exe is first invoked (i.e. not detectable before exe run time) so again a good loc…