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. Get Installation path

Get Installation path

Scheduled Pinned Locked Moved C / C++ / MFC
questionsql-serverhelp
7 Posts 5 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.
  • D Offline
    D Offline
    Davitor
    wrote on last edited by
    #1

    Hi All How can i get MSSQL Installation path?There is any command Plz help me

    L J D 3 Replies Last reply
    0
    • D Davitor

      Hi All How can i get MSSQL Installation path?There is any command Plz help me

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What has this to do with C/C++/MFC?

      S 1 Reply Last reply
      0
      • L Lost User

        What has this to do with C/C++/MFC?

        S Offline
        S Offline
        Saurabh Garg
        wrote on last edited by
        #3

        Well, although he did not specify it but he might want to know the path programatically. -Saurabh

        L 1 Reply Last reply
        0
        • D Davitor

          Hi All How can i get MSSQL Installation path?There is any command Plz help me

          J Offline
          J Offline
          Jan Sommer
          wrote on last edited by
          #4

          I'm pretty sure you can look that up in Windows registry... This code should get you started: http://msdn.microsoft.com/en-us/library/ms838625.aspx[^] Try searching the registry for microsoft sql-related keys and see if the path is there.

          1 Reply Last reply
          0
          • S Saurabh Garg

            Well, although he did not specify it but he might want to know the path programatically. -Saurabh

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Saurabh.Garg wrote:

            Well, although he did not specify it but he might want to know the path programatically. -Saurabh

            He might want to know the time in Timbuktoo ... It would help if people specified clearly what their problem is in the first instance.

            S 1 Reply Last reply
            0
            • D Davitor

              Hi All How can i get MSSQL Installation path?There is any command Plz help me

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Look in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall for a key that matches however MSSQL lists itself. In that key, get the UninstallString value. That path should get you in the near vicinity. Other places in the registry to look might be HKLM\SOFTWARE\Microsoft\MSSQLServer\Setup and HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\\Setup.

              "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              1 Reply Last reply
              0
              • L Lost User

                Saurabh.Garg wrote:

                Well, although he did not specify it but he might want to know the path programatically. -Saurabh

                He might want to know the time in Timbuktoo ... It would help if people specified clearly what their problem is in the first instance.

                S Offline
                S Offline
                Saurabh Garg
                wrote on last edited by
                #7

                Yes but that is the sad reality of programming forums. I have accepted the situation and stop fighting it. This way it is so much more easier. -Saurabh

                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