You know, I’m not exactly sure what a “Adobe Flash Player Installer 10.1” is… could you elaborate?
But if you want to display Flash in a Web browser, like IE8, you’ll need the Flash plugin, sometimes called “Add on”.
There’s no need to uninstall anything to test Flash content in the browser, just temporarily disable that particular add on. In IE8, from the “Tools” menu, “Manage Add-ons”, find the “Shockwave Flash Object”, click on it and then at the bottom of the window, choose “Disable”. Then you can test the non-Flash content. When you want Flash turned back on, just go back and enable that add-on.
Now onto .swfobject… swfobject is a Flash detection method, not an auto-installer. It will go thru the browser add-on list and check to see if “Shockwave Flash Object” is listed. If that add-on is not present, it instructs the browser to display some “alternate content”. If swfobject finds the “Shockwave Flash Object” in the add-on list, it simply lets the browser display the Flash content.
It’s in that “alternate content” that you display a message like “Flash is required to view this page, CLICK HERE TO DOWNLOAD.” Just use a regular <a href="your_installer_URL/"……
The link takes the viewer to wherever you have your “installer”.
The problem with your code is that I don’t see the alternate content, directing the viewer to your installer URL. Also, if you are getting an error message, did you actually download the swfobject.js file and did you correctly link to that file in the page <head> something like this:
Here’s an example page using an image as part of the alternate content. Part of that image is a message to download the Flash add-on.
I’d suggest you disable the Flash add-on in your browser and view the page. Then enable Flash and refresh the page. That will illustrate what swfobject is doing. Without Flash it displays some content (message to download Flash), with Flash it displays DIFFERENT content. This is how you can display your link to the installer for browsers without Flash but the regular Flash content in browsers with the add-on already installed.
I’m not saying that using swfobject is the only way to accomplish Flash detection, I’m just saying that it’s a proven, well accepted method being used on millions of sites already. So there’s no need to re-invent anything to accomplish what you are looking for.
Eye for Video