Page 1 of 1
Remove first line out of INI
Posted: Thu Feb 21, 2013 4:46 am
by mikKummerfeld
Hello Guys,
I need to remove the first line in my ini file, but this line is not into a section. So how can I remove the first line.
I tried the "Edit INI function" without entering the section but it does not work (update or delete line)...

- config.png (28.16 KiB) Viewed 5243 times
thanks
heiko
Re: Remove first line out of INI
Posted: Thu Feb 21, 2013 6:33 am
by FrancescoT
Dear Heiko,
I suggest you to use the following command;
- Read text file, to aquire the entire text file into a Variable.
- Parse String, to remove the unwanted lines
- Write to Text, to store back the updated content.
Please also refer to InstallAware documentation for more detailed information about commands usage.
Hope this helps you.
Regards
Re: Remove first line out of INI
Posted: Thu Feb 21, 2013 6:35 am
by mikKummerfeld
This was also in my mind, but I thought there is maybe a better way like that
But how can I remove a line with parse string...
my line is
activedb=XXXX
(xxxx can be everything and the length is variabel)
Re: Remove first line out of INI
Posted: Thu Feb 21, 2013 7:35 am
by FrancescoT
Dear Heiko,
each text line shoul be terminated with a carriage return control character.
Use NEWLINE pre-defind variable to split the text at the second occurence of it.
Regards.
Re: Remove first line out of INI
Posted: Mon Feb 25, 2013 10:49 am
by mikKummerfeld
Done...Works...Thanks
Re: Remove first line out of INI
Posted: Mon Feb 25, 2013 12:31 pm
by FrancescoT