Check if foxit reader is installed?

1.7k Views Asked by At

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.

3

There are 3 best solutions below

7
On BEST ANSWER

Answer is here. You should look through registry and find the name "foxit reader"

0
On

I would do the following:

  • Take a blank machine.
  • Install FoxIt Reader.
  • Look where it has been installed.
  • Use the 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:

  • Take a blank machine.
  • Install FoxIt Reader.
  • Look for Registry keys that have been added.
  • Use the RegistryKey functions to check for existance of related keys.
0
On

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.