Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1110
  • Last Modified:

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

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
michaelhenderson
Asked:
michaelhenderson
  • 3
  • 3
1 Solution
 
G0ggyCommented:
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
 
michaelhendersonAuthor Commented:
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
 
G0ggyCommented:
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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
michaelhendersonAuthor Commented:
What line of the VB code did you help with?
0
 
G0ggyCommented:
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
 
michaelhendersonAuthor Commented:
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now