Solved

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

Posted on 2009-07-02
6
1,036 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
  • 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 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