Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. mfc installation dependencies???

mfc installation dependencies???

Scheduled Pinned Locked Moved C / C++ / MFC
c++asp-nettoolsquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    work_to_live
    wrote on last edited by
    #1

    I used dependency walker to check the dependencies of my static mfc application, and got a list of core and other dependencies. I'm leary about including too many of these in my installation utility, so I was wondering if there is a list of dll's by OS (Win2000, Win95...) that are guaranteed to be present? Any other comments/cautions regarding distributing dll's with an application would be welcome! :) Thanks.

    N J A 3 Replies Last reply
    0
    • W work_to_live

      I used dependency walker to check the dependencies of my static mfc application, and got a list of core and other dependencies. I'm leary about including too many of these in my installation utility, so I was wondering if there is a list of dll's by OS (Win2000, Win95...) that are guaranteed to be present? Any other comments/cautions regarding distributing dll's with an application would be welcome! :) Thanks.

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      It's safest to include them anyway because the DLLs you require might not be the same version as in the OS. The installer will do a version check and only if the version is newer will it overwirte it. Regards, Nish p.s. One brute force technique I've used is to run my application on a fresh install of each OS :-O


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      1 Reply Last reply
      0
      • W work_to_live

        I used dependency walker to check the dependencies of my static mfc application, and got a list of core and other dependencies. I'm leary about including too many of these in my installation utility, so I was wondering if there is a list of dll's by OS (Win2000, Win95...) that are guaranteed to be present? Any other comments/cautions regarding distributing dll's with an application would be welcome! :) Thanks.

        J Offline
        J Offline
        Jerry Dennany
        wrote on last edited by
        #3

        Yup, check out Microsoft's DLL Help Database". (If the link doesn't work, do a search for "DLL Help Database" on http://msdn.microsoft.com ) You can enter in a DLL name, and it will tell you every product and OS that it is included in. You should also use Windows Installer and merge modules to deploy MFC runtimes, instead of just doing a file copy. Hope this helps! Jerry Dennany

        W 2 Replies Last reply
        0
        • W work_to_live

          I used dependency walker to check the dependencies of my static mfc application, and got a list of core and other dependencies. I'm leary about including too many of these in my installation utility, so I was wondering if there is a list of dll's by OS (Win2000, Win95...) that are guaranteed to be present? Any other comments/cautions regarding distributing dll's with an application would be welcome! :) Thanks.

          A Offline
          A Offline
          Alvaro Mendez
          wrote on last edited by
          #4

          I don't know where to find a list, but the ones that you typically have to ship usually start with m, like msvcrt.dll and mfc42.dll. My recommendation is to install these in the same folder as the application. This will ensure that your app runs with the proper DLLs and that you don't possibly break other apps by overwriting DLLs in the system32 folder. Regards, Alvaro


          That which does not kill me postpones the inevitable. -- despair.com

          W 1 Reply Last reply
          0
          • A Alvaro Mendez

            I don't know where to find a list, but the ones that you typically have to ship usually start with m, like msvcrt.dll and mfc42.dll. My recommendation is to install these in the same folder as the application. This will ensure that your app runs with the proper DLLs and that you don't possibly break other apps by overwriting DLLs in the system32 folder. Regards, Alvaro


            That which does not kill me postpones the inevitable. -- despair.com

            W Offline
            W Offline
            work_to_live
            wrote on last edited by
            #5

            I've seen other applications install the mfc dll's in their folders, but that seems risky to me. Here's my thinking... You may have a down rev version of a particular dll. If you install it in your own directory, and your app happens to be the first one to use it, the OS will load it up. The next app that needs the dll (maybe the more current one that's in the system folder) will get the down rev one, and poof... Could be a problem. Does that seem reasonable? If so, then you should install the dll in the windows "system" directory, and only install if your dll is a more recent version.

            1 Reply Last reply
            0
            • J Jerry Dennany

              Yup, check out Microsoft's DLL Help Database". (If the link doesn't work, do a search for "DLL Help Database" on http://msdn.microsoft.com ) You can enter in a DLL name, and it will tell you every product and OS that it is included in. You should also use Windows Installer and merge modules to deploy MFC runtimes, instead of just doing a file copy. Hope this helps! Jerry Dennany

              W Offline
              W Offline
              work_to_live
              wrote on last edited by
              #6

              Great! I think that's what I'm looking for. The link worked, I'll take a look at it now. Thanks

              1 Reply Last reply
              0
              • J Jerry Dennany

                Yup, check out Microsoft's DLL Help Database". (If the link doesn't work, do a search for "DLL Help Database" on http://msdn.microsoft.com ) You can enter in a DLL name, and it will tell you every product and OS that it is included in. You should also use Windows Installer and merge modules to deploy MFC runtimes, instead of just doing a file copy. Hope this helps! Jerry Dennany

                W Offline
                W Offline
                work_to_live
                wrote on last edited by
                #7

                Oh... I am using InstallShield, and only replacing shared files if the files I'm replacing are older than the one's I'm installing.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups