Skip to content
⌘ NSIS Forum Archive

How to get path to a previously installed file?

2 posts

bross123#

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.
Mr Inches#
I think the Locate plug-in is the tool for this:



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:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Duncan