Visio Installed

Bloodstein

Newcomer
Joined
Jul 1, 2003
Messages
10
I'm coding an application in VB.NET and need to check if Visio is installed on the computer. Is there a way I can do this? Would I be able to check the version of Visio as well?

Thanks
 
Someone may come along with a better answer but this appears to work. The version number returned appears to be just the major rev not the full version number (which I was unable to find in the registry but you may want to look around more)
Visual Basic:
   Private Function IsVisioInstalled() As Boolean
        Dim strKey As String = "SOFTWARE\Microsoft\Visio"
        Dim r As RegistryKey = Registry.LocalMachine
        Dim rSub As RegistryKey = r.OpenSubKey(strKey)
        If rSub Is Nothing Then
            Return False
        Else
            MessageBox.Show(rSub.GetValue("CurrentlyRegisteredVersion").ToString)
            Return True
        End If

    End Function
 
Back
Top