how modify config files?

Got a problem you cannot solve? Try here.
baton1234
Posts: 3
Joined: Thu Aug 16, 2007 8:46 am

how modify config files?

Postby baton1234 » Thu Aug 16, 2007 9:03 am

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?

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Thu Aug 16, 2007 10:38 am

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
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

baton1234
Posts: 3
Joined: Thu Aug 16, 2007 8:46 am

Postby baton1234 » Thu Aug 16, 2007 8:42 pm

In this current situation, config files are huge xml documents, and I need only to change several values inside them.

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Fri Aug 17, 2007 11:25 am

Unfortunatelly there is no way to replace certain text in a file. You need to write the whole file content.
Alejandro Ronquillo

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

Bo Andersen
Posts: 33
Joined: Mon Jul 16, 2007 5:07 am
Location: Denmark

will this do?

Postby Bo Andersen » Fri Aug 17, 2007 2:25 pm

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

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Fri Aug 17, 2007 4:24 pm

baton1234,

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

Thank you Bo.
Alejandro Ronquillo

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 71 guests