Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends

I have a query related to my subject.Actually my query is this that i have developed a Windows application and installed on my system.

Now I have create a new windows application in which i have to get the complete path of installed application i.e where my application is installed.

So Please help me out as soon as possible. I m waiting for reply's.

Thanks lot in advance.
Posted

There is no function to get path of one exe from another windows application.
What you can do is you can iterate program files directory to find your first application directory from second application.
Second option is you can make a registry entry of first application and find entry in registry from second application.This will be better approach.
 
Share this answer
 
Comments
Sunil.yadava09 2-Nov-12 23:49pm    
Please provide me the code for this.
use this property

C#
string path = Application.StartupPath ;
 
Share this answer
 
Comments
[no name] 1-Nov-12 1:33am    
Correct. Mark it as answer OP

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900