Hi Ben,
As far as I know its probably impossible to detect whether its running
or not, but you could see whether it is installed. The problem is that
you will have to find the class ID (CLSID). This is usually in the
window registry. Open the registry editor ('regedit.exe') and open
HKEY_CLASSES_ROOT
Below all the extentions are lists of objects. Most objects have
classid's (CLSID). For example, Word.Application. You can copy the
classID when you view it.
The following script detects whether word and acrobat are installed on
your computer:
<SCRIPT LANGUAGE="JavaScript">
monitor = new Array();
function checkApplication(clsId, name) {
s = '<object id="test_object'+monitor.length+'" '
+'classid="clsid:'+clsId+'" '
+'codebase="view-source:about:blank"> </object>';
document.writeln(s);
monitor[monitor.length] = name;
}
function check() {
for (i=0;i<monitor.length;i++) {
if (monitor!=null) {
obj = document.getElementById('test_object'+i);
if (obj) {
if (obj.readyState!=0) {
alert("'"+monitor+"' is on this machine");
}
monitor = null;
}
}
}
}
checkApplication('000209FF-0000-0000-C000-000000000046',
'Microsoft Word');
checkApplication('B801CA65-A1FC-11D0-85AD-444553540000',
'Acrobat(Reader)');
window.setInterval('check();', 1000);
</SCRIPT>
Well, I hope this helps a bit.
Good luck,
Vincent