InstallAware for Windows Installer
 

Find All Files

This command searches for files matching a wildcard specification on the target system, and returns results in a string variable. If multiple file names match, the returned file names are delimited by the | character. If some of the returned files contain embedded spaces, those file names will additionally be wrapped inside double quote " characters.

Search Path and Wildcards

Provide the full path and wildcard pattern to search for. The search starts in the specified path and all files matching the given wildcard pattern will be returned. * and ? characters are legal wildcards and work in the same way as when used in searches conducted using the operating system. You may also use a single file name, instead of a wild card, to search for a specific file.

Search Subfolders

If the search path contains subfolders, and you wish to search for files inside those subfolders, check this option.

Include Directory Names

If you are searching for files using the *.* wildcard (all files match), the command may also return the folder paths that were traversed. Enable this option to include the folder paths, disable this option to obtain file names only.

Variable

Enter the variable to hold the results of the search.

 Notes

  • If no matching files are found, the variable entered in the Variable field will be an empty string.
  • You may easily navigate the results returned by this command using the For Each...Next loop constructs.