dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Is there a sample to illustrate altering app config file

Hi
Is there a sample currently available (or could you provide one) to illustrate how one could alter the data source and initial catalog values of a connection string in a .net applications configuration file during installation using the sql browser dialog?

Having done this on initial installation of the application how could one ensure that that particular file does not get unistalled when the main application is updated (except on specific occasions where major changes to the application might require resetting the configuration file?

Dom
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Is there a sample to illustrate altering app config file

Hello Dom,

In order to achieve what you want you can use our "Edit XML" support. Also, you can take a look on our "alter XML file content based on radiobox in dialog" thread which could be useful for you.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”