Search code examples
c#internet-explorerflashie-plugins

Seeing if user has Adobe Flash Player installed?


Possible Duplicate:
How can I make my application check if Adobe flash player is installed on a PC?

I need to make sure that the user has the latest flash player for internet explorer installed upon startup of the program, does anyone know how I can check for this?


Solution

  • using WMI:

    var query = new ManagementObjectSearcher("SELECT * FROM Win32_Product");
    var res = from ManagementObject m in query.Get() where m.Properties["Name"].Value.ToString() == "Flash Player"; // I don't know the name of flash player installer
    if (res.Count > 0) { ... }