PDA

View Full Version : Search network dirves for a file



Chris
12-05-2011, 05:17 PM
I've used WISE for over 10 years, but am now evaluating SetUpBuilder(Dev).

I want to search all local and/or network drives looking for a path/file.
(this is my system for deciding what to install based on which of our software the user already has).

How can I do this in SB ?

linder
12-06-2011, 01:46 AM
Chris,

Very easy to do. I have developed a quick and dirty demo for you (see attached screenshot and .sb7 project).

The example searches all detected drives (excluding removable drives) for "notepad.exe". It searches up to folder level 2 in this demo.

By the way, IMO and from my experiences, it is not a good idea (and not recommended) to search for a specific file on all available drives. And on modern UAC-aware operating systems (Vista+) you never know whether mapped drives are visible or accessible to an elevated running installer.

See:
http://www.lindersoft.com/forums/showthread.php?t=31410

Hope this helps.

Friedrich

Chris
12-06-2011, 03:18 AM
Thank you for super quick reply.
Chris

linder
12-06-2011, 03:22 AM
You are very welcome :)

Friedrich