Windows Scripting
  Home arrow Windows Scripting arrow Page 7 - Detecting Plugins in Internet Explorer
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Detecting Plugins in Internet Explorer
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 28
    2005-04-18

    Table of Contents:
  • Detecting Plugins in Internet Explorer
  • How Navigator Handles the Problem
  • IE's Approach
  • Getting started
  • The heart of plug-in detection
  • Displaying the results
  • Extending the Script

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Detecting Plugins in Internet Explorer - Extending the Script


    (Page 7 of 7 )

     

    We can extend this script further and check for other applications installed on the client computer:

    checkForExcel = (IsObject(CreateObject("Excel.Application")))

    checkForWord = (IsObject(CreateObject("Word.Application")))

    checkForPowpoint = (IsObject(CreateObject("Powerpoint.Application")))

    checkForAccess = (IsObject(CreateObject("Access.Application")))

    if checkForExcel = true then

      document.write("<br><b>You have Microsoft Excel Installed.</b>")

    else

      document.write("<br><b>You do not have Microsoft Excel Installed.</b>")

    end if

    if checkForWord = true then

      document.write("<br><b>You have Microsoft Word Installed.</b>")

    else

      document.write("<br><b>You do not have Microsoft Word Installed.</b>")

    end if

    if checkForPowpoint = true then

      document.write("<br><b>You have Microsoft Powerpoint Installed.</b>")

    else

      document.write("<br><b>You do not have Microsoft Powerpoint Installed.</b>")

    end if

    if checkForAccess = true then

      document.write("<br><b>You have Microsoft Access Installed.</b>")

    else

      document.write("<br><b>You do not have Microsoft Access Installed.</b>")

    end if

     

    Or even:

    checkForPhotoshop = (IsObject(CreateObject("Photoshop.Application")))

    if checkForPhotoshop = true then

      document.write("<br><b>You have Adobe Photoshop Installed.</b>")

    else

      document.write("<br><b>You do not have Adobe Photoshop Installed.</b>")

    end if  

    In addition to the infobar warning, unfortunately, users will also get a nasty yes/no box about unsafe activeX controls, which will probably just make visitors leave your site very quickly.

    Now, the page is not pretty. It's cold, and it's basic. If pressed, you could probably get VBScript to draw a table and insert the results of each test into that, along with a pretty little logo of the plug-in and a button linking to the plug-in vendor's site that would be invisible if the plug-in was installed, but visible if it was not. Of course, that would be another article in itself.  


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Thanks for the article. Its a big help, confirmed my suspicions that yet again IE is...
       · Thanks, I'm glad the article helped
       · createObject("Word.Application") will actually fire up WINWORD.EXE in the...
       · Interesting, thanks for pointing that out AllanDan
     

    WINDOWS SCRIPTING ARTICLES

    - Introducing Two-Way Data Binding using Silve...
    - Silverlight 2.0 Application Development with...
    - Burning Multisession CDs with IMAPI2 in WSH
    - Creating a Silverlight 2.0 Application that ...
    - Burning CDs with the IMAPI2 Control
    - Burning CDs in Windows XP with WSH
    - Advanced Word Object Scripting
    - Reading and Printing Word Documents in WSH
    - Scripting Microsoft Word
    - Using WSH to Catalog MP3 Files
    - Reading MP3 ID3 Tags in WSH
    - A Brief Look at Menus in WPF
    - More Examples of Simplified Image Processing...
    - Completing a WPF To-Do List Application
    - Simplified Image Processing in GDI+





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT