views:

206

answers:

3

Something like:

//Get all search data
$search = new search('C:\', '*.exe');
while($item = $search->next())
{
$details = $item->getDetails();
append_details('C:\files.txt', implode_details($details));
}

But in NSIS (http://nsis.sourceforge.net/)

A: 

no clue. never heard of it. maybe someone else here has. if they don't, try the nsis forum

but at the risk of downvotes i must ask: why do you think you need to scan all of the *.exe files during the install process?

Steven A. Lowe
A: 

Well, really it could be in any language, NSIS is just easier for a really small project.

Steve
+1  A: 

You could use the FindFirst/FindNext functions to loop through everything in a particular directory.

FindFirst $0 $1 "c:\*.exe"
FileLoop:

StrCmp $1 "" DoneFileLoop ;Check for no files
DetailPrint $1 ;Print file name

;Code to output whatever details you wanted to a txt file here

FindNext $0 $1 ;Get the next file from the list
goto FileLoop ;Go back to the top and check for no files

DoneFileLoop:
Jamie Barrows