CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Posts
    1

    Reading the Registry

    Wo can tell me, how to read out, if a program (e.g. Acrobat reader) is installed or not on the local pc
    Thanks


  2. #2
    Join Date
    Aug 1999
    Location
    Bangalore, INDIA
    Posts
    70

    Re: Reading the Registry

    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


  3. #3
    Join Date
    Nov 1999
    Posts
    7

    Re: Reading the Registry

    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...



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured