frobinson70
MIS
I am trying to find a way to pull the Adobe reader version, no matter x32 or x64. The code below makes sense to me, but doesn't seem to work. They way I read it is that it is pulling the objSoftware.Name and is starting at character 1 and reading through character 12 and if it = or "reads" Adobe Reader then it pulls the objSoftware.Version. Am I off base? I have tried to put this together using Google b/c I am not very good with this stuff. Any help would be appreciated!!
Code:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Check Adobe Reader Versions
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim colSoftware, objSoftware
Dim Name As String
Dim Parse As String
objSoftware = Nothing
strComputer = "."
objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
colSoftware = objWMIService.ExecQuery("Select * from Win32_Product")
Name = objSoftware.Name
Parse = Name.Substring(1, 12)
If Parse = "Adobe Reader" Then
Label20.Text = ("Adobe Reader Version: " & objSoftware.Version)
End If