Old 13th February 2008, 12:16   #1
bross123
Junior Member
 
Join Date: Feb 2008
Posts: 4
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.
bross123 is offline   Reply With Quote
Old 13th February 2008, 13:35   #2
Mr Inches
Member
 
Join Date: Jan 2006
Location: Canberra, Australia
Posts: 76
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
Mr Inches is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump