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

installation path

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • N Offline
    N Offline
    NewVC
    wrote on last edited by
    #1

    Hi All How can i get installation path of application?

    _ K J 3 Replies Last reply
    0
    • N NewVC

      Hi All How can i get installation path of application?

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      Well it all depends on the approach a developer takes. Do you want to acquire the installation path of your application itself? If yes, than you should have the source code and you must be writing it somewhere in the registry (ideally) or to some text file during the installation. You can read it from either of the places. If it's the installation path of a third party application, that you need than you need to know before hand where they are writing it.

      Some things seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      1 Reply Last reply
      0
      • N NewVC

        Hi All How can i get installation path of application?

        K Offline
        K Offline
        krmed
        wrote on last edited by
        #3

        You can use GetModuleFileName to get the full path to your application. Good luck.

        Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

        1 Reply Last reply
        0
        • N NewVC

          Hi All How can i get installation path of application?

          J Offline
          J Offline
          Jijo Raj
          wrote on last edited by
          #4

          Do you want to get the path of an installed application which is listed in the Add/Remove programs? If yes, then, Windows keep the un-installation information under this registry key - HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall. Under this key for each item there will be DisplayName subkey, which holds the name of application and InstallLocation subkey, which holds the path of the installed application. Refer this article[^] about how to iterate through the registry uninstall information and get those values. Regards, Jijo.

          _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

          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