---
title: "asp检测某个组建是否安装函数"
author: "fengxu"
date: "2008-11-12T15:18:00Z"
tags: []
slug: "asp"
draft: false
lastmod: "2008-11-12T15:18:00Z"
id: 343526
url: "https://fengxu.iteye.com/blog/343526"
---

函数如下

Function IsObjInstalled(strClassString)  
  On Error Resume Next  
  IsObjInstalled = False  
  Err = 0  
  Dim xTestObj  
  Set xTestObj = Server.CreateObject(strClassString)  
  If 0 = Err Then IsObjInstalled = True  
  Set xTestObj = Nothing  
  Err = 0  
 End Function

 

使用方法

IsObjInstalled(组建),返回一个boole值