[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 821
  • Last Modified:

Check if ActiveX Control is installed

How do I check if a given ActiveX control (IE4) is installed on a users computer?
0
BlackMan
Asked:
BlackMan
  • 8
  • 6
1 Solution
 
interCommented:
We should first check the key
My Computer\HKEY_CLASSES_ROOT\CLDID\{-here should be the GUID of IE40 which I do not know, but you may check it if you have IE4 installed}
if this key is present in registry then we may check the actual OCX file for making sure that it is installed.
We can do these programatically by using
TRegistry.KeyExists and FileExists functions
Regards, Igor
0
 
BlackManAuthor Commented:
Do you know if the Reg Key the same on Win95/Win98 and NT?
0
 
interCommented:
I think it is, but i do not know. Actually I use netscape products and avoid using IE on NT.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
BlackManAuthor Commented:
Can you interface Netscape as an ActiveX? Or imbed it on you own Delphi form in any other way?
0
 
interCommented:
Hi,
Netscape has its own COM(OLE) interface, so you can even browse something at the background. Although it is not seen in the OLE list the class name of the browser is

Netscape.Network.1

Any way what do you want to do? A browser? or backrground processing?
Regards, Igor
0
 
interCommented:
Actually,
I have get the info and programmed starting with the info at
http://www.zdnet.com/wsources/content/960717/taskbar.html
Regards, Igor
0
 
BlackManAuthor Commented:
I'm makeing a application based on a ISAPI extenstion and I want to give the users an option to preview the data, they has submittet to the application.
Do you have an example of using Netscape on a Delphi form (how to call Navigate funtion and so on)? Or do you know where to get information about it?
(Of course, I'll give you more that 50 points for that :-)
If you want to email me directly, you can grab my email addr. from the Shared Effort page..
0
 
interCommented:
I try to find my code on embedding netscape, by this time you man look the URL above...
;-)
0
 
BlackManAuthor Commented:
Thanks.. If Netscape is not installed as an ActiveX, how do I check if it is installed on the users computer? (Btw., I used your solution about checking Registry, works fine..)
0
 
interCommented:
You may just try to create the object in a
try
except
end;
close and see if it is available(hey man! why did not I think before this is easier with IE4 also if you know the name of the object!)
Regards, Igor
0
 
interCommented:
You may just try to create the object in a
try
except
end;
close and see if it is available(hey man! why did not I think before this is easier with IE4 also if you know the name of the object!)
Regards, Igor
0
 
BlackManAuthor Commented:
That was the solution I used first, but I like the idea with checking for a control better..
0
 
BlackManAuthor Commented:
Inter,

I've solved my problem, please post your first comment as an answer and I'll grade you...
0
 
interCommented:
We should first check the key
My Computer\HKEY_CLASSES_ROOT\CLDID\{-here should be the GUID of IE40 which I do not know, but you may check it if you have IE4 installed}  if this key is present in registry then we may check the actual OCX file for making sure that it is   installed.
We can do these programatically by using
    TRegistry.KeyExists and FileExists functions
Regards, Igor
(Thanks friend, how about netscape OLE bussiness, it the link be useful?)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now