Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Finding where a prog is installed

Posted on 1997-08-11
2
Medium Priority
?
164 Views
Last Modified: 2010-04-04
How can I tell where Netscape and IE are installed? I know this info is in the registry, but on my machine for example, netscape and IE show up in various places. Is there any rhyme or reason to how this is placed in the registry, and how do I do a simple read of this info using Delphi 3?
                     Thanks,
                          jexd99@aol.com
0
Comment
Question by:jexd99
2 Comments
 
LVL 5

Accepted Solution

by:
ronit051397 earned 200 total points
ID: 1341122
Usually the NetScape Installation directory is placed in the Registry file in this path:
Software\Netscape\Netscape Navigator\Main
with the value string of 'Install Directory'.
to retreive the directory were the netscape program is located write:

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;
//do something with FDir
.
.
end;

0
 

Author Comment

by:jexd99
ID: 1341123
I got exactly what I asked so that's an A. :)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

963 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