Updating XML configuration files during setup

For all your non-technical questions.
Post Reply
msaffold
Posts: 1
Joined: Wed Jan 24, 2007 12:38 pm

Updating XML configuration files during setup

Post by msaffold »

Hello!

I've been playing a bit with InstallAware 6 Studio Admin. Using import and the dialogs, I've updated a base MSI install created from Visual Studio to do just about everything we need except update some parameters in a configuration file.

We have a file called web.config that contains property setting for our application. I see that you can update INI file and the registry with scripting commands, but didn't see anything similar for an XML file.

Is there something I'm missing or would this be a plug-in opportunity for me?

Thank you,
Michael C. Saffold
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Hi Michael,

You can try out the EditFile plug-in - that might be useful. Building your own plug-in sounds like fun, too!

Another possibility is using Read from Text File to read in the whole file, Parse String to parse the read data and find your injection point, Call DLL Function (on kernel32.dll with DeleteFileA/MoveFileA) to backup and rename the old file, and then Write to Text File to output the new file.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
dencolp
Posts: 5
Joined: Thu May 01, 2008 4:33 pm

Post by dencolp »

Where can this "EditFile" plug-in be found?

It doesn't appear to be available from the plug-ins download page.

Thanks.
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Check the Plug-Ins section of this forum. We'll have the Community Center updated soon for it!
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
andyhore
Posts: 20
Joined: Fri Jun 06, 2008 2:10 pm

Post by andyhore »

Hi msaffold,

Did you ever solve this problem? I'm still trying to, and the EditFile plugin is not going to solve my problem (although it does work well!).

Thanks,
Andy.
Post Reply