Page 1 of 1

Updating XML configuration files during setup

Posted: Wed Jan 24, 2007 12:46 pm
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,

Posted: Wed Jan 24, 2007 1:57 pm
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.

Posted: Mon May 19, 2008 2:23 pm
by dencolp
Where can this "EditFile" plug-in be found?

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

Thanks.

Posted: Mon May 19, 2008 7:49 pm
by CandiceJones
Check the Plug-Ins section of this forum. We'll have the Community Center updated soon for it!

Posted: Mon Jul 21, 2008 12:33 pm
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.