Board index » Visual Studio » How to find default Installation Folder of an application?
|
ming_shan
|
How to find default Installation Folder of an application?
Visual Studio53
Hello, How can I find in which folder the apllication is installed? It is generally installed in X:\Program File\folder_name. (X: is system drive) I am trying to trap this folder for a follwing reason: I developed a VB6 application and installed it on near about 50 machines. Now if I make some changes to program, I have to copy a new .exe to each machine manualy. For this I added some code to application and replaced the .exe on all machines. This code look for a new .exe on a file server and if needed changes with it self. This is working very fine. (I'LL LIKE TO KNOW, IF ANY OTHER WAY IS THERE?) But the my problem is that on some machines the OS is installed on C: , on some it is D: and so on. Even worse the application is not installed to its default location(X:\Program File\folder_name) So my new code needs the location where the application is installed. How can i do it? Any api function? I tried for GetSysInfo. It dose not help me. And I have never worked on registry settings.. -- Regards, Amit Mohod AB Softskills, Nashik. Cell No: 09822939505 Office: +91-253-2382781(255) - |
