Read variable from file
Reads the value of the variable from a file.
Optionally, you may add comments here describing the purpose of this element.
Specify the name of the variable for getting the file content.
Choose the path to a file.
APPLICATION DATA PATH - Program subfolder in Application Data folder.
CDROM PATH - CD or DVD drive.
CUSTOM PATH - The path must be defined in the filename control.
INSTALL PATH - Default installation path.
SETUP FILE PATH - The path to where setup executable file is running.
SYSTEM PATH - Windows system directory.
TEMPORARY PATH - The temporary folder of the installation #tempinstpath#. It is a subfolder genteeXX in the default temporary user's folder #temppath#.
WINDOWS PATH - Windows directory.
Name of the file that you want to read content from. If you use a CUSTOM PATH, the full path to the file should be specified.
Read variable from file command
No - The variable is overwritten.
Append - The content of the file is appended at the end of the variable.
Insert at beginning - The content of the file is inserted at the beginning of the variable.
Maximum size (Byte)
You can limit the size of the reading data. Enter the desired size in bytes. In this case, the size will be calculated from the beginning of the file. If left blank, the entire file will be read (max. ~32MB). Additionally, you can specify the offset separated by comma. In this case, the reading size will be calculated from the specified position. You can also specify a parameter third, if it is 1, then the offset and size will be calculated from the end of the file. See the following examples:
160 160,220 #size#,#offs#,#end# if the text = This is a very long database text then the result, if the parameter Maximum size = 9 This is a 9,3 s is a ve 10,0,1 abase text 10,2,1 atabase te This is a s is a ve abase text atabase te
Select if the file is UTF-8 or Unicode encoded.
Remove BOM characters
Check this checkbox if you want remove the UTF-8 or Unicode BOM characters from the beginning of the variable.
You can specify a condition that should be met for the action to be performed. If the condition is false then the command is skipped. See How to use If Condition for more details.