IFileSearch

Declaration

IFileSearch: IAppSearch

Overview

This interface is meant to edit search options for a file

Properties

String FileName - Gets or sets the name of the file to search.

String Languages - Gets or sets the languages supported by the file.

String MinVersion - Gets or sets the minimum version for the file.

String MaxVersion - Gets or sets the maximum version for the file.

uint MinSize - Gets or sets minimum file size in bytes.

uint MaxSize - Gets or sets maximum file size in bytes.

Example

$advinst = new-onject -com AdvancedInstaller
$prj = $advinst.CreateProjectS(“architect”)
$newFileSearch = $prj.Search.NewFileSearch("MY_FILE_SEARCH_PROP")
$newFileSearch.FileName = "MyApp.exe"
$newFileSearch.MinVersion = "2.0"
$newFileSearch.MinSize = "5000"
$compLoc = $newFileSearch.$newFileSearch.AddComponentLocator()
$compLoc.GUID = "{c4c29405-23d0-4347-8fa4-ee23c83e4cc3}"

See also

ISearch

IBaseSearch