🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16676

Re: Identifying registered appications

#16676
From: Sam Mildener
Date: Mon, 05 May 2003 11:33
29 lines
2079 bytes
Matthias Knoke wrote:
> Hi,
> what is the best way to identify registered applications on a PC ?
>
> I like to start Acrobat Reader and MS Word from my program, so I need
> to know whether it is installaed, and , if yes, where the application
> is located.
>
> In the registry I found in  HKEY_LOCAL_MACHINE\Software\Classes keys
> for all registered file types (like ".doc", ".pdf" etc.) but these
> links don't contain the path name of the application, and it seems,
> the format of this entries differs between the windows
> versions.
> What is the easiest way to solve this  ?

HKEY_LOCAL_MACHINE\Software\Classes DOES INDEED point to the application
path,
in two steps:

The default value for .pdf for instance is "AcroExch.Document".

Then look up the default value for
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\shell\open\command

This is the path to Acrobat Reader.

--

Sam Mildener
Technical Details
Message-ID: <q_rta.2262$jn.288098376@hebe.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!ossa.telenet-ops.be!hebe.telenet-ops.be.POSTED!not-for-mail
References: <b95cr4$n9k$07$1@news.t-online.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,425f8c99a1b6a5a5
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-05 04:40:14 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!ossa.telenet-ops.be!hebe.telenet-ops.be.POSTED!not-for-mail
From: "Sam Mildener" <nospam@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <b95cr4$n9k$07$1@news.t-online.com>
Subject: Re: Identifying registered appications
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <q_rta.2262$jn.288098376@hebe.telenet-ops.be>
Date: Mon, 05 May 2003 11:33:42 GMT
NNTP-Posting-Host: 81.83.230.197
X-Complaints-To: abuse@telenet.be
X-Trace: hebe.telenet-ops.be 1052134422 81.83.230.197 (Mon, 05 May 2003 13:33:42 CEST)
NNTP-Posting-Date: Mon, 05 May 2003 13:33:42 CEST
Organization: Telenet Internet