PluginDetect.getVersion('IEcomponent', componentID): [Returns string or null]
Returns the version (as a string) of the installed component.
Returns null when the version could not be determined.
By default, the returned version string is comma delimited and has the format of "A,B,C,D". If you wish to change the getVersion( ) delimiter, then use:
PluginDetect.getVersion(delimiter) where delimiter is a string with exactly 1 character.
For example,
PluginDetect.getVersion("."); // set delimiter
var version = PluginDetect.getVersion("IEcomponent"); // version has the format of "A.B.C.D"
PluginDetect.isMinVersion('IEcomponent', minVersion, componentID): [Returns number]
Returns 1 if component is installed for the specified componentID, and the version is >= minVersion.
Returns 0 if component is installed for the specified componentID. The version is unknown, and thus we are unable to determine if version >= minVersion.
Returns -0.1 if component is installed for the specified componentID, but version is < minVersion.
Returns -1 if component is not installed or not detectable.
Returns -3 if you supplied a bad input argument to the isMinVersion( ) method.
minVersion: [string or number input argument]
This is the minimum ActiveX control version.
Can be a string such as '1,5,0,0' or '1.5' or '1,5,0,1' or '1.5.0.1' etc...
Can be a number such as 0 or 1.5 or 1.50 etc...
If minVersion is not specified, then PluginDetect will assume minVersion is '0'.
Strings are more versatile than numbers since '1,5,0,1' cannot be expressed as a number.
componentID: [string]
The componentID specifies the component that you wish to detect.
The format of the string is "{identifier}". As an example, "{89820200-ECBD-11CF-8B85-00AA005B4383}". You can use upper or lower case letters if you wish. Spaces in the string are ignored.
A list of potential component IDs can be found in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components.