How I can find path for installed application from VB.net if i know the name of application exe file?
Thanks!
How I can find path for installed application from VB.net if i know the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you mean any arbitrary application (not the one that’s running), there’s really no other way than to search the hard drive for that .exe’s file name.
If you can at least be confident that it’s in the Program Files folder, this should give you what you need.
This will give you back a string array of the paths to all files that have that name within the Program Files folder.
If you can’t assume that it’s in Program Files, then you can substitute any directory.
That will search the entire primary hard drive. Again, you can substitute any root path you like for the
rootDirectoryvariable.It should be noted that these options are relatively slow; there is, unfortunately, no fast way to accomplish this without knowing more information about where it might be installed.