InstallShield 2016 » InstallScript Language Reference
Project • This information applies to the following project types:
• | InstallScript |
• | InstallScript MSI |
Note that this function does not work with files in InstallScript Object projects.
The FeatureFileInfo retrieves information on a file in the file media that is referenced by szFeatureSource (MEDIA).
Note • This function cannot be used with script-created features.
Syntax
FeatureFileInfo ( szFeatureSource, szFeature, szFile, nInfo, nvResult, svResult );
Parameters
Parameter |
Description |
||||||||||||||||||||||||||||||
szFeatureSource |
Pass MEDIA in this parameter. |
||||||||||||||||||||||||||||||
szFeature |
Specifies the feature containing the component in which the file is found. |
||||||||||||||||||||||||||||||
szFile |
Specifies the component and the file name, with or without a path. Delimit tokens in the szFile expression with double backslashes and enclose the expression in double quotation marks.
“component\\file name”
"component\\path\\file name" For example:
Note • InstallShield lets you add entire file and folder structures to your components by dragging and dropping them in the Files view. |
||||||||||||||||||||||||||||||
nInfo |
Specifies the type of information to be retrieved. Pass a constant in this parameter. The available constants apply to either a specified component, or a specified file in a component. The available file-specific constants are:
Note • Raw MD5 signature data for a particular file consists of 16 generated numeric values of 16 bit each (between 0x00 and 0xFF). These values are usually stored in a string of unsigned characters. However, the InstallScript language does not support unsigned characters, so instead of returning the raw MD5 file data, each of the 16 numeric values are converted to their string equivalent and placed in the resulting string. This results in a string of 32 characters, where each set of two characters represent a single numeric value. This is sometimes referred to as a MD5 hex string. |
||||||||||||||||||||||||||||||
nInfo (cont.) |
Note • You can use the ConvertSizeToUnits function to convert these values into a single value of KBYTES, MBYTES, GBYTES, or TBYTES. |
||||||||||||||||||||||||||||||
nInfo (cont.) |
The available component-specific constants are:
|
||||||||||||||||||||||||||||||
nvResult |
Specifies information that is dependent on the constant that is passed in nInfo. When nInfo is FEATURE_INFO_ORIGSIZE_HIGH, FEATURE_INFO_ORIGSIZE_LOW, or FEATURE_INFO_ATTRIBUTE, nvResult returns a number value. When nInfo is FEATURE_INFO_ATTRIBUTE, nvResult returns a numeric value that represents the file attributes from the Windows Installer File table. To determine the file attribute settings, use file attribute constants in bitwise OR operations with nvResult. For an example of how to test nvResult, see FeatureFileInfo Example. For more information about the File table attributes, see the Windows Installer Help. When nInfo is FEATURE_INFO_LANGUAGE or FEATURE_INFO_OS, the parameter position occupied by nvResult must specify a LIST variable to store the language or operating system IDs. You must call ListCreate with the constant NUMBERLIST to create the list before you call FeatureFileInfo to determine which languages or operating systems are specified by the component: listID = ListCreate(NUMBERLIST); FeatureFileInfo(szFeatureSource, szFeature, szFile, FEATURE_INFO_LANGUAGE, listID, svResult); When nInfo is FEATURE_INFO_LANGUAGE, FeatureFileInfo adds language IDs to the list; when nInfo is FEATURE_INFO_OS, FeatureFileInfo adds operating system IDs to the list. When ninfo is FEATURE_INFO_COMPONENT_FLAGS, nvResult returns one or more of the following values:
|
||||||||||||||||||||||||||||||
nvResult (cont.) |
When ninfo is FEATURE_INFO_OVERWRITE, nvResult returns one or more of the following values:
Note that nvResult could contain both date and version values. When ninfo is FEATURE_INFO_DOTNET, nvResult may return the following value: FEATURE_VALUE_LOCAL_ASSEMBLY—The component is marked as a local assembly. |
||||||||||||||||||||||||||||||
svResult |
Returns the date, time, or version when nInfo specifies a corresponding information type. |
Return Values
Return Value |
Description |
0 |
FeatureFileInfo was successful. |
<0 |
FeatureFileInfo failed. |
See Also
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |