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.
FOLLOW US
Get the latest news in Application Packaging