Solved

How to detect if Adobe Flash is installed and what version number using VB.NET 2005

Posted on 2009-07-02
6
1,066 Views
Last Modified: 2013-11-26
Hi Experts,

Is there any way to detect whether Abobe Flash Player ActiveX is installed on a PC using VB.NET 2005?

Many thanks in advance.
0
Comment
Question by:michaelhenderson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:G0ggy
ID: 24764018
Adobe Flash Player Active X lists in Installed programs within Windows:

http://www.codeproject.com/KB/system/installed_programs.aspx

This any good to you. I'm assuming from your question you're not trying to detect it in a browser, through ASP?
0
 

Accepted Solution

by:
michaelhenderson earned 0 total points
ID: 24771732
Thanks to G0ggy for pointing me in the right direction, which gave me an idea as to what I needed to do, although none of the code was for VB.NET. Here is my solution, which I have stripped down for simplicity:


    Public Sub checkVersion()
 
        Dim regKey As RegistryKey
        Dim versionNo As Decimal
        Dim msgboxResponse As Integer
 
        Dim curNo As Decimal = 10
 
        Try
            regKey = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player ActiveX", True)
            versionNo = regKey.GetValue("VersionMajor", 0.0)
            regKey.Close()
 
            If versionNo < curNo Then
                msgboxResponse = MsgBox("Upgrade Required")
            End If
        Catch ex As Exception
            msgboxResponse = MsgBox("Installation Required")
        End Try
 
    End Sub

Open in new window

0
 
LVL 11

Expert Comment

by:G0ggy
ID: 24771754
The author states that the supplied comment helped to find a solution, along with looking at installed programs, I question whether this means that the author fully "solved this myself"
0
A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

 

Author Comment

by:michaelhenderson
ID: 24771828
What line of the VB code did you help with?
0
 
LVL 11

Expert Comment

by:G0ggy
ID: 24771842
If it's purely on lines of code then most of the responses to questions would be in the same position.

What a terrible attitude.

Request closure again, I won't object.
0
 

Author Comment

by:michaelhenderson
ID: 24772384
I did mark your original comment as helpful, which it was.
My original question was: "Is there any way to detect whether Abobe Flash Player ActiveX is installed on a PC using VB.NET 2005?"
In the link you sent, there was nothing related to VB.NET.
My attitude is not terrible, I am just being honest.
0

Featured Post

AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month6 days, 8 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question