Solved

Finding where a prog is installed

Posted on 1997-08-11
2
148 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
System restore point 4 91
Delphi XE10, MySQL Query 4 126
indy Tmemory stream non latin charcter issue 2 98
control image tags in a string ? 12 111
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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

896 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now