INI File - Formatting
This command allows you to sort the contents of the INI file. You can delete unnecessary lines or insert an empty line before the section name. You can remove spaces and tabs from the beginning and end from lines.
Description
Optionally, you may add comments here describing the purpose of this element.
Path
Choose the path to an INI-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.
Filename
Name of the INI-file. If you use a CUSTOM PATH, the full path to the file must be specified.
Encoding
Select if the INI 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.
Convert line break to Windows OS
- Note: If the file contains UNIX (0a) or MAC (0d) characters, formatting cannot be performed!
No - No changes in the INI file.
Permanently - Converts UNIX (0a) or MAC (0d) characters to WINDOWS (0d0a) characters.
Temporary - The conversion is temporary, only for the duration of the formatting.
Remove the spaces and system symbols, in the file begin and end
Check this option, to remove space, line breaks, or system symbol characters from the beginning and end of the file.
* Empty Lines = Includes only spaces and/or tabs.
Cleaning lines
No - No changes in lines.
Left side - Removes spaces and tabs, from the left of the lines.
Left side and Empty lines - Removes spaces and tabs, from the left of the lines and the empty lines.
Right side - Removes spaces and tabs, from the right of the lines.
Right side and Empty lines - Removes spaces and tabs, from the right of the lines and the empty lines.
Only empty lines - Removes spaces and tabs, from the empty lines.
Both sides - Removes spaces and tabs from left and right of lines.
Both sides and Empty lines - Removes spaces and tabs from left and right of lines and the empty lines.
Removing empty lines
No - No changes in the INI file.
Remove all - Removes all empty lines from the INI file.
Remain 1 lines - Removes all empty lines from the INI file, but if there are several empty lines sequentially, it leaves 1 line.
Remain 2 lines - ... if there are several empty lines sequentially, it leaves 2 lines.
Remain 3 lines - ... if there are several empty lines sequentially, it leaves 3 lines.
Remain 4 lines - ... if there are several empty lines sequentially, it leaves 4 lines.
Remain 5 lines - ... if there are several empty lines sequentially, it leaves 5 lines.
Mode to removing empty lines
In the full file - Removes all empty lines from the INI file.
After the first section name - Removes any empty lines that are in after of the first section name.
Before the first section name - Removes any empty lines that are in before of the first section name.
Specify a custom setting - Specify the starting character number and the length of the range, separated by comma.
Custom setting to removing empty lines
If you have previously selected mode to Specify a custom setting. Specify the starting position of the removal and its length separated by a comma. If you specify only one value, it will be the starting position and the length will the end of the file, for example:
0,245 ;the beginning of the file to the 245. character. 350,680 ;the 350. characters to 680. characters. 350 ;the 350. characters to the end of the file.
Section Mode
Off - Does not change the area before the section name in the INI file.
On (Mode 1) - If there is no empty line before a section name, insert one empty line. (Except the first Section name, if is at the beginning of the file)
On (Mode 2) - If there is no empty line before the section name, but there is a comment (; ...), insert one empty line before the comment. (Except for the first section name, if the comment there is at the beginning of the file)
On (Mode 3) - If there is an empty line before the name of a Section, it delete empty lines before the name, until to the non-empty line.
On (Mode 4) - Mode 1 and Mode 3 together.
On (Mode 5) - Mode 2 and Mode 3 together.
Operations before the first Section name
Off - No changes in the INI file.
Insert - Before the first section name insert the specified empty line.
Deleting - Before the first section name delete the specified empty line, if at least the specified number of empty lines is located.
Auto - The specified number will of empty lines, before the first section name.
Number of lines for the operation
If you have previously selected mode to Insert, Deleting or Auto. Enter the number of lines to insert and delete, or to case Auto mode the number of empty lines before the first Section name.
Resulting variable
You can specify the name of the variable which will equal 1 if the formatting operation is completed successfully. Otherwise, the value of the variable equals 0.
If Condition
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.