Best way to update a .config?

Got a problem you cannot solve? Try here.
Post Reply
_dave_k
Posts: 2
Joined: Tue Sep 25, 2012 6:13 am

Best way to update a .config?

Post by _dave_k »

Greetings all,

I was originally using the "EditFile" plugin for upating the contents of our <application>.exe.config files which worked perfectly for doing this, but currently it seems that it doesn't work for the latest version of IA NX and I am assuming based on other searches I have done for the same reason that perhaps the developer is no longer maintaining the development.

With that said my question is how (and what) is the best way to update the contents of the <application>.exe.config files currently within IA? I noticed there is a feature to edit the contents of an .xml based file, but the documentation on this utility is sparse to say the least and doesn't really say much if it can be used for editing .config files as well and also how to go abouts doing it... such as updating the Connection String, Custom Settings, etc.

Any help would be appreciated since I am now stuck after upgrading to the latest IA in our environment and I cannot rebuild our setup files without some sort of resolution. :cry:

Thanks much!
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Best way to update a .config?

Post by FrancescoT »

Dear Dave,

We currently have Read from Text File and Write to Text File; used with the #READALL\ sequence and the Replace String function, these serve well as an Edit File (please check the help file for more information on the sequence).

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
_dave_k
Posts: 2
Joined: Tue Sep 25, 2012 6:13 am

Re: Best way to update a .config?

Post by _dave_k »

This is great and works like a charm! Thanks for the help :D
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Best way to update a .config?

Post by FrancescoT »

:D :D :D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
christ23
Posts: 82
Joined: Mon Jan 16, 2012 4:51 am

Re: Best way to update a .config?

Post by christ23 »

Or, as i am doing it with our .Net releases, you can also use the edit xml command (maybe it might be a command from the caphyon plugin oe the mdtools plugij, which i can both recommend).
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Best way to update a .config?

Post by FrancescoT »

Thanks christ23 ... for your update.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply