Solved

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

Posted on 2009-07-02
6
1,016 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

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

Expert Comment

by:G0ggy
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now