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
Checked this checkbox if the file has UTF-8 encoding.
Text to be inserted.
#myhost 127.0.0.1 www.mysite.com 127.0.0.1 www.mysite.net #endmyhost
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.