Archive: How to get path to a previously installed file?


How to get path to a previously installed file?
I have a need to get search a drive or folder and get the full path name for a previously installed file. I.e. the user can select where they wanted to install a file and now I need to find it. I know the file name but need to search specific folder trees and find out where it is.

Any ideas/help would be greatly appreciated.


I think the Locate plug-in is the tool for this:

http://nsis.sourceforge.net/Locate_plugin

Locate::Find can search for just a file name and returns the full path and name of any files found (second parameter to the Find call).

There was post in this forum about using it with GetDrives to search all local drives for files only a few days ago - the solution provided looked pretty good.

Here is the other thread:

http://forums.winamp.com/showthread....ghlight=Locate

Duncan