Application Path
-
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.
-
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.
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... "
-
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... "
-
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... "
-
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... "
-
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.
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... "
-
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.
The path to the exe file can be retrieved using
Application.StartupPath
-
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.
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.