你用js调用你的组件就知道了function isAlitalkInstalled(){
if (clientCaps.isComponentInstalled("{8601658B-9360-00C1-AE00-00C03EA25D91}", "componentID")){
return true;
}else{
if(NewCheckAlitalkInstalled()){
return true;
}else{
return false;
}
}
}
function NewCheckAlitalkInstalled(){
var obj;
try{
obj = new ActiveXObject("AlitalkSetup.Install");
}catch(e){
}
if (null!=obj){
return true;
}else{
return false;
}
}if (isAlitalkInstalled()){..........}
else{alert('没有安装');}
if (clientCaps.isComponentInstalled("{8601658B-9360-00C1-AE00-00C03EA25D91}", "componentID")){
return true;
}else{
if(NewCheckAlitalkInstalled()){
return true;
}else{
return false;
}
}
}
function NewCheckAlitalkInstalled(){
var obj;
try{
obj = new ActiveXObject("AlitalkSetup.Install");
}catch(e){
}
if (null!=obj){
return true;
}else{
return false;
}
}if (isAlitalkInstalled()){..........}
else{alert('没有安装');}
关于楼上的方法,想问一下,obj = new ActiveXObject("AlitalkSetup.Install");我的activex名字叫test.ocx,是不是new ActiveXObject方法里面的参数值就是"test.ocx",我给客户提供下载的cab,里面还有其他的文件,所以搞不清楚是不是用这个名字
我也是用的这个方法 :)