Archive: Check if a folder contains extra files


Check if a folder contains extra files
This may be a somewhat complex problem, and I'm not sure if it's possible with NSIS.

I would like for my script to check if a folder contains any files, ASIDE FROM 3 specific files I am looking for.

The best solution I have been able to think of is to copy the three files to another location, delete the originals, check if the folder is empty, then copy the files back. That does not seem like a very elegant solution though. Do I have any other options?


It's quite simple. See NSIS documentation about FindFirst FindNext FIndClose.

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.5


a quick example to help you :-)


Ok, that sounds simple enough. Thank you!