Skip navigation
Currently Being Moderated

Which is the correct Registry Path to Get Adobe Acrobat Version?

Sep 9, 2009 12:18 AM

Hi All

 

Originally, this post was put  on [Acrobat Windows] forum, i am reposting it here, since i didnt get any answer.

 

I am currently using Adobe Acrobat 9.1.3 Pro in my Win XP - SP3 machine.
I would like to know how can i get the 'CORRECT' version of the installed Adobe Acrobat from the registry.

 

Under windows Registry, i could find two places
- HKEY_CLASSES_ROOT\AcroExch.App\AcrobatVersion.
- HKEY_CLASSES_ROOT\AcroExch.Document\AcrobatVersion.

 

Among these two, the first keys value shows as 8.0 and the latter shows as 9.0. I guess the first one is the correct place to look but it shows as 8.0.
by the way, i have installed it on a fresh clean machine. So is it a bug from Adobe Acrobat ? or is it correct for Adobe Acrobat ( may be in some way).

In that case can i  use 'AcroExch.Document' but will it be retained in the future versions also.

 

thanks in advance

regards

~jafeel

 
Replies
  • Currently Being Moderated
    Sep 9, 2009 1:24 AM   in reply to rjafeel

    Why do you need to know?  Are you doing this in a separate application?  In

    a plugin?  Other?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 9, 2009 3:54 AM   in reply to rjafeel

    You can check this registry key :

    "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Acrobat\x.0\Installer\Path" which give the installation path.

    You have to check that for all supported version for instance 7.0, 8.0 and 9.0.

     

    Do the same if you want check the version of Acrobat Reader.

     

    Hope that can help you,

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 9, 2009 8:22 AM   in reply to rjafeel

    Why are you querying the registered OLE interfaces for the application version number?  They are distinct and completely the wrong place to query for version.

     

    [HKLM\SOFTWARE\Adobe\Adobe Acrobat\X.0\Installer]

    VersionMax = 0x00090001

    VersionMin = 0x00020000

     

    That would be Acrobat 9.1.2

     

    Where X is the major version (i.e. 7, 8, 9).  There may be more than 1 major version tree used for compatibility with add-on and legacy applications (even if you installed on a clean machine - this is not a bug it is intended behaviour) but only the currently installed version will have sub-keys under the Installer key.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 10, 2009 1:40 PM   in reply to rjafeel

    Attached VBS will do what you want.

    Your info, you get from Windows: FileSystemObject

     

    The RegRead command is only to get the path of the executable.

    In an advanced programming you can replace this command with an API call: FindExecuteable

     

    HTH, Reinhard

     

     

    AcGetVersion.vbs

    -------------------------------------------------------------

     

    Set WshShell = CreateObject("WScript.Shell")
    Set FSO = CreateObject("Scripting.FileSystemObject")

    '  // Get the path

    Path = WshShell.Regread("HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.EXE\Path")
    Path = Path &"\"& "Acrobat.exe"

    msgbox(Path)
    '  //Get the version

    msgbox FSO.GetFileVersion(Path)

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 10, 2010 4:41 AM   in reply to ReinhardF

    The .exe can not be used to reliably detect the version. Acrobat 9.3.4 exe file (acrord32.exe) reports 9.3.3, the dll (acrord32.dll) reports 9.3.4

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points