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#
  4. Application Path

Application Path

Scheduled Pinned Locked Moved C#
helpquestionannouncement
8 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.
  • C Offline
    C Offline
    Cliffer
    wrote on last edited by
    #1

    Hi all, I need to know the correct path where is installed my software. I need this because i have to update my software only by copying one file into the installation path. So, i can launch my upgrade and only by Software name i have to copy correctly my file. Can someone help me? Thanks.

    S B V 3 Replies Last reply
    0
    • C Cliffer

      Hi all, I need to know the correct path where is installed my software. I need this because i have to update my software only by copying one file into the installation path. So, i can launch my upgrade and only by Software name i have to copy correctly my file. Can someone help me? Thanks.

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Check the dll of the current application where it is or check the registry/Control panel

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      C 1 Reply Last reply
      0
      • S Sandeep Akhare

        Check the dll of the current application where it is or check the registry/Control panel

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        C Offline
        C Offline
        Cliffer
        wrote on last edited by
        #3

        Ok...but how can i do this?? Can you have a sample for registry or control panel search??

        S 1 Reply Last reply
        0
        • C Cliffer

          Ok...but how can i do this?? Can you have a sample for registry or control panel search??

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          No yar if you know the name of the dll then only you have do is search for that dll using Operating System Search option which you find in Start Menu ...... Or go to Start Menu then Control Panel - then add and Remove programme see if your aaplication is listed there

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          C 1 Reply Last reply
          0
          • S Sandeep Akhare

            No yar if you know the name of the dll then only you have do is search for that dll using Operating System Search option which you find in Start Menu ...... Or go to Start Menu then Control Panel - then add and Remove programme see if your aaplication is listed there

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

            C Offline
            C Offline
            Cliffer
            wrote on last edited by
            #5

            But i have to do this all automatically... No to go on control panel->add remove.... I have to launch my update batch-program and so it have to copy my file into this folder, only with software name information.

            S 1 Reply Last reply
            0
            • C Cliffer

              But i have to do this all automatically... No to go on control panel->add remove.... I have to launch my update batch-program and so it have to copy my file into this folder, only with software name information.

              S Offline
              S Offline
              Sandeep Akhare
              wrote on last edited by
              #6

              OK i thought you are asking manually i think while installing your appaication it should have crated some folder at specific position in machine Check that FOlder name in the machine using DirectoryInfo class. Then i think you know better than me What you have to do :) Sorry boss i thought you want that manually ;)

              Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

              1 Reply Last reply
              0
              • C Cliffer

                Hi all, I need to know the correct path where is installed my software. I need this because i have to update my software only by copying one file into the installation path. So, i can launch my upgrade and only by Software name i have to copy correctly my file. Can someone help me? Thanks.

                B Offline
                B Offline
                blackjack2150
                wrote on last edited by
                #7

                The path to the exe file can be retrieved using Application.StartupPath

                1 Reply Last reply
                0
                • C Cliffer

                  Hi all, I need to know the correct path where is installed my software. I need this because i have to update my software only by copying one file into the installation path. So, i can launch my upgrade and only by Software name i have to copy correctly my file. Can someone help me? Thanks.

                  V Offline
                  V Offline
                  Vikram A Punathambekar
                  wrote on last edited by
                  #8

                  If you need to figure out the path of the currently executing app, use Environment.CurrentDirectory If your updater program has to find out where the app has been installed, write the path to the registry during installation and read it from there during the update.

                  Cheers, विक्रम


                  Be yourself, no matter what they say. - Sting, Englishman in New York.

                  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