Solved

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

Posted on 2008-10-10
4
148 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
ID: 22685958
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
ID: 22687299
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
ID: 22687315
Perhaps you can incorporate the link into your install process, either automated or manual?
0
 
LVL 14

Expert Comment

by:yessirnosir
ID: 22687477
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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