Click to See Complete Forum and Search --> : Reading the Registry


GregorS
November 19th, 1999, 11:05 AM
Wo can tell me, how to read out, if a program (e.g. Acrobat reader) is installed or not on the local pc
Thanks

Sharathms
November 19th, 1999, 11:19 AM
Hi there,
usually all the programs put there installation path into a key [App Paths ]
like
for Acrobat reader
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe
this will hold -> "C:\Program Files\Adobe\Acrobat 4.0\Reader\AcroRd32.exe"
so on....
if this key is there, the program is installed.
Sharath

Warrier
November 19th, 1999, 11:21 AM
You have to get the class id for the Acrobat using the Prog Id(
AcroExch.Document).Then with this class id
you have to search the registry to get the "LocalServer32" section and then you
have the guarenteed
command line for the Acrobat Reader. Now with this file name , check the existence if
present you have Acrobat Reader in the
machine...