Solved

Detecting the browser installed

Posted on 1998-01-06
9
185 Views
Last Modified: 2010-04-04
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
Comment
Question by:WizKid
  • 4
  • 3
  • 2
9 Comments
 
LVL 2

Accepted Solution

by:
Waldek earned 50 total points
ID: 1355349
go to Delphi Super Page and download gotoweb component. In component You have a function FindBrowser
Regards
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1355350
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
 

Author Comment

by:WizKid
ID: 1355351
ronit...
How about Internet Explorer??
And does this work for all versions?

Is it possible to get the version number as well?
0
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.

 
LVL 5

Expert Comment

by:ronit051397
ID: 1355352
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
 

Author Comment

by:WizKid
ID: 1355353
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
 

Author Comment

by:WizKid
ID: 1355354
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
 
LVL 5

Expert Comment

by:ronit051397
ID: 1355355
Yes, but I didn't get the points...
0
 

Author Comment

by:WizKid
ID: 1355356
ronit...

Oops...
I think Waldek got the points. Sorry about that
0
 
LVL 2

Expert Comment

by:Waldek
ID: 1355357
Sorry ronit
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question