davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

XML Element will not replace when asked to replace it

I am manipulating a web.config file to add an <authentication mode="xxxx"> element depending on UI choice. I have set the element settings to be
"Create if doesnt exist"
"Update first matching if does exist"

but what is happening on subsequent re-installs is that if
<authentication mode="Forms"> exists then i try to replace with <authentication mode="Windows" is that I end up with both !

what I want to achieve is to replace which ever <authentication mode="xxxxx"> with my new one.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: XML Element will not replace when asked to replace it

Hi,

You can see my response on the xml element not being replaced when asked to update thread.

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

Return to “Common Problems”