Export (0) Print
Expand All

isComponentInstalled Method

This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10.

Retrieves whether the specified component is available.

Syntax

bInstalled = clientCaps.isComponentInstalled(sID, sIDType [, sMinVersion])

Parameters

sID Required. A String that specifies a MIME type, ProgID, class identifier (CLSID), or component ID.
sIDType Required. A case-insensitive String that specifies the type of the identifier in sID. Must be one of the following values:
mimetype
A MIME type, such as application/cdf.
progid
A ProgID string, such as WMPlayer.OCX.
clsid
A CLSID, such as {6BF52A52-394A-11D3-B153-00C04F79FAA6} (Microsoft Windows Media Player).
componentid
The Active Setup component ID. See Detectable Components in Internet Explorer.
sMinVersion Optional. A String that specifies the minimum required version of the component. (Version numbers can contain only numerals, separated by commas.)

Return Value

Returns one of the following values:

true
The component is installed, and its version number is greater than or equal to the specified sMinVersion.
false
The component is not installed, or its version number is less than the specified sMinVersion.

Remarks

 New for Windows Internet Explorer 9 Internet Explorer 9. Obsolete. Do not use.

Only Internet Explorer components are detected by this method. If a component identifier of a non-Microsoft component is specified, the method returns false .

Example

This example uses the isComponentInstalled method to determine whether the Microsoft virtual machine is installed.


<HTML xmlns:IE>
<HEAD>
<STYLE>
@media all {
      IE\:clientCaps {behavior:url(#default#clientcaps)}
}
</STYLE>
</HEAD>

<BODY>
<IE:clientCaps ID="oClientCaps" />

<SCRIPT>
    bMSvmAvailable = oClientCaps.isComponentInstalled("{08B0E5C0-4FCB-11CF-AAA5-00401C608500}",
    "ComponentID");
</SCRIPT>   

 :
</BODY>

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/clientcaps/isMSvmThere.htm

Applies To

clientCaps

See Also

Community Additions

ADD
Show:
© 2014 Microsoft