Q
|
How can I tell what version of BrowserHawk is installed on my server? My ISP is using BrowserHawk and it would be handy if I could check this through a property of the object.
|
A
|
The answer depends on whether you have BrowserHawk (ActiveX) or BrowserHawk4J (JavaBean) installed:
BrowserHawk ActiveX
Starting with BrowserHawk 4.03 there is a property called DLLVersion. This property returns a string representing the version of the installed BrowserHawk DLL. For example, bh.DLLVersion may return "4,0,3,12". This returns the same results as checking the Version property of the DLL itself. Versions of BrowserHawk prior to BH 4.03 will return "Unknown" if you check this property.
Another way to check the version of BrowserHawk installed is by launching the BrowserHawk Editor and choosing About from the Help menu. This of course assumes that you have access to the BH Editor, which you likely do not if you are using the product through your ISP.
BrowserHawk4J and BrowserHawk for .NET
Starting with BH4J build 5.0a, and with all versions of BH for .NET, you can check BrowserHawk.getVersion(). This returns the version number of the component.
If this call fails with BH4J, then you have a version of BH4J prior to 5.0a. Note: Do not get this confused with
BrowserHawk.getBrowserInfo(xxx).getVersion(), which returns the browser version for the current visitor).
|