Customer config modifications - Advanced Installer Community
dejx
Posts: 10
Joined: Sun Jul 26, 2015 12:51 pm
Contact: Website Skype Twitter

Customer config modifications

I have a question about configuration with advanced installer. Here is a description of workflow i'm trying to achieve.
I have a multiple configuration files Web.config and Service.config.
Advanced installed allows me to modify these configuration files with properties in the "Edit XML file" dialog. This is very neat, very nice touch.
I also want an option so my customers can modify web.config file after the installation.

Is there any way i could achieve this? What is the preferred way of doing this, what do you guys recommend?

Why do i need this, my product is very generic and it can host several modules, configuration for these modules are in Web.config. Modifying the appconfig is out of the question since every next install or repair would wipe out all modifications.
So my desired flow:
1. Customer fills values in dialogs and installs setup, web.config and service.config are correctly changed.
2. Customer have ability to edit config bypassing the installer and those changes would be applied on every upgrade/repair

What i have tried, and i dont like it:
I have created a initial transformation file at the first install, and executing a XDT transformation on every install/upgrade/repair. Having transformation file on different location this works, but it's ugly.

Its very common to have some customer modifications of web.client and cannot be wiped out by setup. How do you handle this? Do you guys propose any cleaner way of achieving this?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Customer config modifications

Hi,

In order to keep the changes made by the user to the config file after the installation, you can user one of the following methods, depending on your scenario:
1. create some XML searches to get the new values from the config file, put them in properties and use them in the XML file from your project
2. prevent the config file from being removed during the uninstall of the application and do not modify it during the upgrade or repair

Just let me know if any of this solution is suitable for you and if you need more details.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”