Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Detecting the browser installed

I need some help detecting whether Netscape and Internet Explorer has been installed on the system.

I also need to retrieve the paths of these two browsers if they are installed

Thanks in advance,
WizKid
0
WizKid
Asked:
WizKid
  • 4
  • 3
  • 2
1 Solution
 
WaldekCommented:
go to Delphi Super Page and download gotoweb component. In component You have a function FindBrowser
Regards
0
 
ronit051397Commented:
Here is a code for getting installation directory of Netscape:

uses registry;
...
procedure .....
var FDir: String;
begin
  with TRegistry.Create do
  begin
    OpenKey('Software\Netscape\Netscape Navigator\Main', True);
    FDir := ReadString('Install Directory');
    CloseKey;
    Free;
  end;
end;
0
 
WizKidAuthor Commented:
ronit...
How about Internet Explorer??
And does this work for all versions?

Is it possible to get the version number as well?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ronit051397Commented:
1. IE
In order to get details on Netscape you need to do some research on the registry file, that's how I got the installation directory. Since I don't have the IE installed in my computer, therefore can't make the inquiry. But you can, after you have seen the example.

2. Netscape versions.
I don't think that Netscape programmers (and any other good programmer, in general) will change the registry keys/values
names from one version to another, since it would be very difficult to maintain the sources.

3. Getting version number.
There are 2 ways to get it:
A. By getting the version of the Netscape Exe file, that is by calling GETFILEVERSIONINFO. An example can be found in:
http://www.borland.co.uk/devsupport/delphi/ti_list/TI3241.html 
B. By reading the registry file as follows:

procedure TForm1.Button1Click(Sender: TObject);
var FVersion: String;
begin
  with TRegistry.Create do
  begin
    RootKey:=HKEY_LOCAL_MACHINE;
    OpenKey('SOFTWARE\Netscape\Conference', True);
    FVersion := ReadString('CurrentVersion');
    CloseKey;
    Free;
  end;
end;
0
 
WizKidAuthor Commented:
Thanks for guiding me to search in the registry...
Have found the way to do it

I can actually get the path from
'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\';

Thanks anyway
WizKid
0
 
WizKidAuthor Commented:
Thanks for guiding me to search in the registry...
Have found the way to do it

I can actually get the path from
'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\';

Thanks anyway
WizKid
0
 
ronit051397Commented:
Yes, but I didn't get the points...
0
 
WizKidAuthor Commented:
ronit...

Oops...
I think Waldek got the points. Sorry about that
0
 
WaldekCommented:
Sorry ronit
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now