Solved

Finding where a prog is installed

Posted on 1997-08-11
2
147 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
Comment Utility
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
Comment Utility
I got exactly what I asked so that's an A. :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 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

10 Experts available now in Live!

Get 1:1 Help Now