Assuming that the application is installed under a certain fixed path is a bad idea! You could try to search for the application (recursively), using the FindFirst and FindNext functions, but that's still slow and error prone. Instead, most applications will write their location to the registry - under a well-known registry key/value. So, in order to "detect" the install location, you just read the appropriate registry value.
|