To determine if a plugin has been installed, use the FileSystemObject object to verify the plugin .dll file in one of the following directories:
C:\Program Files\Internet Explorer\PLUGINS\
-or-
C:\Program Files\Plus!\Internet Explorer\PLUGINS\
For an example, see the following sample code:
<HTML>
<HEAD>
<SCRIPT language="VBScript">
Dim fso, returnDir
Sub checkfile()
Set fso = CreateObject("Scripting.FileSystemObject")
returnDir = fso.FileExists("C:\Program Files\Plus!\Internet Explorer\PLUGINS\myplugin.dll")
If returnDir = True Then
MsgBox "myplugin.dll is in C:\Program Files\Plus!\Internet Explorer\PLUGINS"
End If
Set returnDir = Nothing
End Sub
Sub window_unload(file)
Set fso = Nothing
End Sub
</SCRIPT>
</HEAD>
<BODY>
<INPUT type=button value="click me" onclick="checkfile()">
</BODY>
</HTML>
NOTE: The
CreateObject() function is used with Low security only.