2

My application needs Adobe Flash Player to function properly and I need it to check whether it's installed or not.

So how can I make my application check if Adobe flash player is installed on a PC?

My program is written in C#

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
anbuselvan
  • 1,201
  • 4
  • 16
  • 21

3 Answers3

7

Check if this registry key exists:

\HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer

Then, you can check the installed version (if installed) from here:

\HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer\CurrentVersion

Here you can find code on how to check existence of registry key.

Sarwar Erfan
  • 18,034
  • 5
  • 46
  • 57
4

Following code return current version string of flash.

private string GetFlashPlayerVersionString()
{
    RegistryKey regKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Macromedia\FlashPlayer");
    if (regKey != null)
    {
        string flashVersion = Convert.ToString(regKey.GetValue("CurrentVersion"));
        return flashVersion;
    }
    return string.Empty;
}
tgeek001
  • 95
  • 1
  • 7
-1

Open the Flash folder (C:\Windows\System32\Macromed\Flash) and whatever is listed there would be your Flash Player files.

apros
  • 2,848
  • 3
  • 27
  • 31