We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

robpearmain
Posts: 7
Joined: Thu Jul 02, 2009 4:27 pm

Patch adds duplicate section to web.config

Hi,

I created a patch that seemed to work fine. However, upon running the ASP.NET site an error occured. Upon investigation, a duplicate section had been added to the web.config file.

The web.config file was imported as XML so that it could recieve data passed from the install (ConnectionString).

Is there a way to choose which files tro update and which not to?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Patch adds duplicate section to web.config

Hi,

A patch will include only the files that have been modified and the new added ones.

Regarding the duplicate section you can try this:
- double click the xml file, in the new dialog that will appear go to the element that is being duplicated.
- in the Install group check “If the element is found” checkbox , and “Update” radio button, not “Add a new sibling”

This way a duplicate section will not be added and the value from the existing one will be updated.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”