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
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;
}