Searches for one or more files and stores the path(s) of the found file(s).
Action ID: 73
Action Category:
File Information
The name of the variable to store the result in. The result will be a semi-colon delimited list of paths where the file was found. For example, "C:\Program Files\Yourfile.exe;C:\Backup\Yourfile.exe". You can use the Count Delimited Strings and Get Delimited String actions to parse the returned value into individual paths and filenames.
This is the default value of the Store result in variable variable. The variable will be set to this default value if the file being searched for is not found.
The file to search for. You can use the wildcards "?" and "*" to specify a single character or any number of characters, respectively. For example, specifying "*.gif" will fill the variable with all files that have the ".gif" file extension.
The scope determines where the setup executable will search for the specified file on the user's computer. You can specify one or more locations to search. Choose from:
Search all local drives (hard drives) - Searches all of the hard drives on the user's computer for the file.
Search all remote drives (network drives) - Searches all of the user's mapped network drives for the file. Note that this can take a long time depending on the size of the network drives and the speed of the user's network connection.
Search all removable drives (floppy drives, Zip drives, etc.) - Searches all of removable drives on the user's system for the file. Removable drives can take many forms, such as floppy drives of various sizes, Zip drives, Jaz drives, etc. Generally you should only use this search option if you have a very specific reason to do so due to the relatively slow speed of most removable drives.
Search all CD-ROM drives - Searches all of the CD-ROM drives on the user's computer for the file.
Search specific directories/drives - This option allows you to choose specific drives and/or directories to search in. Use the Custom directories field to specify a semi-colon delimited list of drives or paths to search. Check the Recurse custom directories option if you want to search the subdirectories of the custom directories. If this option is unchecked, only the exact specified path will be searched.
None.
In this example, we will search the users hard drive for all Setup Factory 6.0 projects. We will store this information, as a semi-colon delimited list, in a variable named %SF6Files%.
Store result in variable: %SF6Files%
Search for file (wildcards
"*" and "?" permitted): *.sf6
Search all local fixed drives (hard drives): Checked
Search all remote drives (network drives): Unchecked
Search all removable drives (floppy
drives, Zip drives, etc.): Unchecked
Search all CD-ROM drives: Unchecked
Search specific directories/drives: Unchecked
Custom directories (semi-colon delimited): NA
Recurse custom directories: NA
See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab