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

xml element not being replaced when asked to update

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
1. element name "authentication"
2. attribute mode="Forms" (or mode="Windows" depending UI choice)
3. "Create element if doesnt exist"
4. "Update first matching if does exist"

but what is happening is that if
<authentication mode="Forms"> exists and 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 not being replaced when asked to update

Hi,

I'm not sure why you encounter this problem. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them? Can you also send us your XML file or a sample XML file which we could make our tests on and try to reproduce the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

Re: xml element not being replaced when asked to update

I will get this information to you later today.

Return to “Building Installers”