Using C# I want to detect whether foxit reader is installed on a windows machine. How can I achieve this?
Thanks in advance for your help.
Using C# I want to detect whether foxit reader is installed on a windows machine. How can I achieve this?
Thanks in advance for your help.
Answer is here. You should look through registry and find the name "foxit reader"
I would do the following:
File.Exists
function together with Environment.GetSpecialFolder
to check for the executable to be present.Alternatively, if the path may vary where it has been installed, you could:
RegistryKey
functions to check for existance of related keys.Files could be installed incorrectly. The same applies for registry keys that are stored by the Application itself. A File.Exists
does not actually indicate it has been installed (and registered as a viewer).
I would personally check the Windows Installer database for the Product
.
checking the uninstall registry is a possible approach, however you can also invoke MsiQueryProductState using windows API calls.