Insert text into file
This command allows you to add specified lines to a text file. The text is added to the end of the file. It will not be added if the first line of the text being added is found in the specified file. This command can be used to add necessary lines to files similar to “hosts”. To delete the added block during deinstallation, you can use the command Delete lines from file. In that case, it is better to begin and finish the text with comments.
Optionally, you may add comments here describing the purpose of this element.
Choose the path to the 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.
Enter the name of the file where you need to insert text.If you use a CUSTOM PATH, the full path to the file should be specified.
Insert text into file command
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 files.
Text to be inserted.
#myhost 127.0.0.1 www.mysite.com 127.0.0.1 www.mysite.net #endmyhost
Insert at beginning
By default, the text is inserted at the end of the file. If you want to insert text at the beginning of the file, check this box.
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.