Method 1: (preferred)
=================
Private Sub Form_Open(Cancel As Integer)
If QueryKey("Software\Adobe\Adobe Acrobat\5.0\InstallPath", "") = "" Then
Me.cmdSaveReportAsPDF.Enabled = False
Else
Me.cmdSaveReportAsPDF.Enabled = True
End If
End Sub
==================
Method 2: (NOT TESTED)
===================
Public Function CheckForWriter() As Boolean
dim strRequiredFile as string
'The file that is only present in the full version needs to go below:
If QueryKey("Software\Adobe\Adobe Acrobat\5.0\InstallPath", "") = "" Then
But this is only if 5.0 is installed. What if 4.0 or 6.0 are installed? I don't know of a way to check, but I wouldn't use a hard coded method such as this as things may change or not be applicable.
If QueryKey("Software\Adobe\Adobe Acrobat\5.0\InstallPath", "") <> "" Or QueryKey("Software\Adobe\Acrobat Distiller\7.0\InstallPath", "") <> "" Then
Me.cmdSaveReportAsPDF.Visible = True
Else
Me.cmdSaveReportAsPDF.Visible = False
End If