Page 1 of 1

how modify config files?

Posted: Thu Aug 16, 2007 9:03 am
by baton1234
How I can modify config files during the installation?
For example, I have a dialog for input of several parameters, what should I do to insert values of this parameters to a config file?

Posted: Thu Aug 16, 2007 10:38 am
by Alex_Ronquillo
For this you can use the "Write to Text File" MSI command. This function writes to a file in the target system either at the beginning or at the end of the file

Posted: Thu Aug 16, 2007 8:42 pm
by baton1234
In this current situation, config files are huge xml documents, and I need only to change several values inside them.

Posted: Fri Aug 17, 2007 11:25 am
by Alex_Ronquillo
Unfortunatelly there is no way to replace certain text in a file. You need to write the whole file content.

will this do?

Posted: Fri Aug 17, 2007 2:25 pm
by Bo Andersen
Hey

saw this EditFile plugin in the Plugins section - is that not what you need?

http://www.installaware.com/forums/viewtopic.php?t=81

Bo

Posted: Fri Aug 17, 2007 4:24 pm
by Alex_Ronquillo
baton1234,

Bo Andersen is right. That is exactly what you need.

Thank you Bo.