Is there a web site (or something else) that has information on folders and their hierarchy where various programs and applications are installed?
Please let me explain. I am writing an application that (part of what it does) references certain files installed by other application. To be able to determine the file paths for these folders I have to download and install each application seperatly on my development pc, search for the file I want, and then write its path in my application.
This method is very time consuming and, frankly, boring, as it requires downloading and installing each application (some of them in excess of 600MB) and then locating the required file just to be able to “know” its path.
So, I was wondering if there is something that could speed things up. like, for example, a website that would have such information. I tried each of the applications own website for information but no dice.
Any help from you will be much appreciated.
Many thanks
If you’re using Windows Installer, I would use a combination of the various search elements you have available. (AppSearch, RegLocator, etc.)
Here’s an example using WiX code, this particular example first looks in the App Paths registry location to find the details for
winword.exe, secondly it ensures that the version number is at least 11 (Office 2003).As long as all the applications you’re searching for are using the
App Pathskey to expose themselves to the system then you should be able to work backwards from that and not even need to prompt the user. (This registry section is the reason you can just enterwinwordfrom the “Run” dialog even though it’s not in the path and can’t be run from a command prompt window.)