This code would of course go in a module file to support the API calls.
Const KEY_READ = &H20019
Const HKEY_LOCAL_MACHINE = &H80000002
Function CheckRegistryKey(ByVal hKey As Long,
ByVal KeyName As String)
As Boolean
Dim handle As Long
If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) = 0 Then
CheckRegistryKey = True
RegCloseKey handle
End If
End Function
Function CheckAdobe() As Boolean
CheckAdobe = CheckRegistryKey(HKEY_LOCAL_MACHINE, "SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\APP PATHS\ACRORD32.EXE")
End Function