InstallAware for Windows Installer
 

Read from Binary File

This command helps you read a string of text from a binary file at a given offset.

Read from File

Enter the full path of the file on the target system to read from.

Into Variable

Enter the variable that will receive the string read from the binary file.

The following special values are reserved for failure conditions while reading the requested file:

Value Meaning
MYAH_OPEN_FAILED File not found or insufficient access rights.
MYAH_SEEK_FAILED File not big enough or other error during seek.
MYAH_READ_FAILED Unable to read from file after positioning the file pointer.

At Position

Enter the zero based index of the file read position.

Total Bytes to Read

Enter the total number of bytes to read from the binary file.

 Note

  • Any control characters and blank spaces will be removed from the start and end of the returned string.