Results 1 to 5 of 5

Thread: How to find out if a DLL exists and registered? And if exists, ...

  1. #1
    kenhuie Guest

    Question How to find out if a DLL exists and registered? And if exists, ...

    Hi,

    I am new with InstallShield Professional 5.5. I would like to know how to find out if a DLL exists and registered on a system. If it exists and registered, how to get the new DLL to be copied to the same location as the existing DLL? If it doesn't exist, just copy the new DLL to the location set by the installer.

    Any help is greatly appreciated!!!

    Thanks in advance,
    Ken

  2. #2
    Join Date
    Jan 2002
    Posts
    23
    Hi Ken,

    I think I'm looking for the same problem.

    If you know the folder where the file should be stored you can use "VerGetFileVersion()" or "FindFile()".

    But I don't know how to find out if it is registered.

    Example for VerGetFileVersion():

    Code:
      // Get file version
      nResult = VerGetFileVersion(WINSYSDIR ^ "ActXPrxy.dll", svVersion );
    
      if( nResult = FILE_NO_VERSION ) then
          // --- version info not found  ---
          bFound = TRUE;
          svVersion = "";
      elseif( nResult = FILE_NOT_FOUND ) then
          // --- file not found -----------
          bFound = FALSE;
          svVersion = "";
        else
          bFound = TRUE;
      endif;
    Please let me know if you solved this problem.
    I'm looking for solutions for Windows Socket 2.0 and ActxPrxy.dll.

    THX
    Joerg

  3. #3
    kenhuie Guest
    Hi Joerg,

    Thanks so much for the help. At least, my problem is now half-solved.

    Thanks again,
    Ken

  4. #4
    kenhuie Guest
    Hi Joerg or All,

    What if the dll can be located anywhere on the system? Is there any way to find that out and then copy the new dll to that very same location?

    Thanks so much!!!

    Ken

  5. #5
    Join Date
    Jan 2002
    Posts
    23
    Hi Ken !

    Have a look at this:

    http://community.installshield.com/s...1761#post91761

    There I've posted a function to find a file on all drives of your computer.

    See the IS help for details on how to copy files to other directories then the usual TARGETDIR.


    HTH
    Joerg

Posting Permissions

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