troubleshooting Question

check for adobe reader on 64 bit system.....

Avatar of NettieCross
NettieCrossFlag for United States of America asked on
Visual Basic.NET
4 Comments1 Solution524 ViewsLast Modified:
Check out this code, which works great, but uses the specific "Microsoft.Win32.RegistryKrey" namespace - I need thos code to also search for adobe on a 64 bit machine, anyone know how to modify this for 64 bit:


Public Sub IsAdobeInstalled()
        'the best way to find adobe when so many versions are out there, and adobe uses a new folder for each version
        'is to use the registry to see if adobe sits in the current users software keys
 
        Dim regKey As Microsoft.Win32.RegistryKey
        regKey = My.Computer.Registry.CurrentUser.OpenSubKey("Software\Adobe", False)
        Dim paths() As String = regKey.GetSubKeyNames
        Dim path As String
        Dim installed As Boolean = False
        For Each path In paths
            If path = "Acrobat" Then
                installed = True
                'MsgBox("Adobe Reader is installed")
            End If
        Next
        regKey.Close()
        If installed Then
            'ContinueCode()
        Else
            If MessageBox.Show("Adobe Acrobat Reader is not installed, would you like to install now?", "Acrobat Reader", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = Windows.Forms.DialogResult.Yes Then
                System.Diagnostics.Process.Start("AdbeRdr812_en_US.exe")
                End
            Else
                'ContinueCode()
            End If
        End If
    End Sub
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros