Solved

How do I test a users computer to see if flash is installed (from an .exe program)

Posted on 2008-10-10
4
145 Views
Last Modified: 2010-04-25
I would like to know if there is a way to test if a user has the flash player installed on their computer. I am using multimedia builder software that creates .exe's -

You can have html pages / flash / javascript and so on.
0
Comment
Question by:nathan1038
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
yessirnosir earned 500 total points
Comment Utility
When you insert Flash using Dreamweaver, you can choose to add a "Check Plug-In" behavior (in the "Tag" panel, over on the right, under the Behaviors tab.)  That causes Dreamweaver to insert some Javascript that checks for the existence of the player onfocus.  You could modify the logic as required to meet your specific needs. For example, I've attached a modification that should redirect you to page1.htm if you have flash, or page2.htm if you don't.  

There is more info about various methods of checking for flash here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14526


<script type="text/javascript">

<!--

function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0

  var ok=false; document.MM_returnValue = false;

  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {

    ok=(plugins && plugins[plgIn]);

  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1

    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;

    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;

    else ok=autoGo; }

  if (!ok) theURL=altURL; if (theURL) window.location=theURL;

}

//-->

</script>

</head>
 

<body onfocus="MM_checkPlugin('Shockwave Flash','page1.htm','page2.htm',true)">
 

<div>you should never see this text. script should send you to page 1 if you have flash or page 2 if you don't</div>
 

</body>

<script name="Used by MM_checkPlugin" language="javascript">

<!--

with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+

'<scr'+'ipt language="VBScript">\nOn error resume next\n'+

'MM_dir = IsObject(CreateObject("SWCtl.SWCtl"))\n'+

'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');

//-->

</script>

Open in new window

0
 
LVL 8

Expert Comment

by:TDKD
Comment Utility
Hi nathan1038,

I use the link below to test if a user has Adobe Shockwave & Flash Players installed, and the nice thing is if they do not they can simply install it here.

http://www.adobe.com/shockwave/welcome/
0
 
LVL 8

Expert Comment

by:TDKD
Comment Utility
Perhaps you can incorporate the link into your install process, either automated or manual?
0
 
LVL 14

Expert Comment

by:yessirnosir
Comment Utility
another link from Adobe http://www.adobe.com/devnet/flashplayer/detection_installation.html
the first link I gave you was apparently a outdated version and the links to the detection kit didn't work.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now