Reputation: 91
I am working in a C++ project. I need to obtain the path of a installed software. (Eg. skype.exe) Is there any way to find the path via C++ coding or via Widows command prompt
Upvotes: 1
Views: 924
Reputation: 86688
It's in the App Paths
registry key. For skype.exe
you would look in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\skype.exe
You can call the standard Win32 API RegQueryValue
to read it.
Upvotes: 1
Reputation: 36896
Depends what you are needing it for, and how generic you want it.
Upvotes: 1