Skip to content
⌘ NSIS Forum Archive

how to modify the config file after installed??

4 posts

freebendy#

how to modify the config file after installed??

i have made an installation.I want to modify the configure file
after installed,e.g:
a .ini in mysql like this:
[client]
port = 3306
socket = /tmp/mysql.sock

[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
......

i want to insert 'basedir="$INSTDIR"' and 'datadir="$INSTDIR/data"' after [mysqld],i try to use
the filewrite instructions,but there is something wrong.
such as :can't represent a carriage return ,can't locate the place to write!!
how to do this???
somebody could help me?