Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to get path to a previously installed file? (http://forums.winamp.com/showthread.php?t=286796)

bross123 13th February 2008 12:16

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 13th February 2008 13:35

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


All times are GMT. The time now is 17:55.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.