In the example you have given... Shockwave is probably not something you would consider a Program (in the Windows sense) but more a Plug-in to the web browser.
Web browsers supply methods to check versions of their Plug-ins (since they have full control over their own environment). In the case of Shockwave, Macomedia have supplied code that you can copy/paste to do this (check their support site).
You cannot check to see if a (real) Program is installed on the visitor's computer. This would provide some nasty security holes if you could... not to mention the privacy issues of 3rd parties being able to interrogate your local computer.
Now... before someone comes up with "you can use ActiveX to do it"... I would ask you to seriously consider whether you would click "Yes" to allow some (unknown) ActiveX code from some (untrusted) website to run freely over your computer. Besides... using ActiveX only works for IE running under Windows (so any Mac or Linux people are immediately ignored... as are any Windows users using Mozilla, Opera etc).
Hope this answers some questions... and provides some "food for thought"!
BabyJeffy > I do not wish to run though a list of programs installed on a local machine... Just veryify that one particular program, my program, is infact installed.
Is there a way to create a plugin like shockwave which would do this?
pixl8r >
Im trying to detect if a progam I created is on the computer by mimicing the way FLASH and SHOCKWAVE plugins can be detected through JavaScript.
To test like a "plug-in", your program would have to be a "plug-in" for the browser. Testing for anything beyond the browser would be to access a security hole that has long been plugged. If you're program doesn't interact with a browser or an application inititated through the browser, then you're out of luck.
If it is a true "plug-in", I would think that you would have to have the "plug-in" source code for the browser, or some other SDK type utility to build the plug-in as well as provide a method to download the plug-in.
There's always a better way. The fun is trying to find it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.