Solved

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

Posted on 2009-07-02
6
1,025 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

914 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

21 Experts available now in Live!

Get 1:1 Help Now