namespace SabreTools.Data.Models.WiseInstaller.Actions { /// /// Find File in Path /// /// This action searches for a file on the destination computer. If more than one match /// exists, only the first match is returned. /// /// /// This action is called through Call DLL Function and is mapped to "f22". /// This acts like the start of a block if the default value is omitted(?) /// /// public class FindFileInPath : FunctionData { /// /// Flags from the argument data /// /// /// Encoded as a string, binary representation in script file. /// Expected flags: /// - Remove File Name (unknown) /// public byte DataFlags { get; set; } /// /// Variable to store the path if it is found /// public string? VariableName { get; set; } /// /// File name, not a full path /// /// Wildcard characters are not allowed public string? FileName { get; set; } /// /// Value to put in the variable if the file is not found /// /// Leave blank to evaluage to false for an if public string? DefaultValue { get; set; } /// /// Semicolon-delimited list of directories to search /// /// Variables are allowed. If blank, PATH is used. public string? SearchDirectories { get; set; } /// /// Optional description to display if the search takes longer than /// 1.5 seconds to complete. /// public string? Description { get; set; } } }