Edit XML File logic & Existing XML File - Advanced Installer Community
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Edit XML File logic & Existing XML File

How does the Advanced Installer "Edit XML File" logic work if an existing XML file, e.g. configuration file, is already in that folder?

If we have an element marked as "Update, first matching" does it try to do the lookup/replace or does it just not do the element match because the XML file was NOT laid down by this instance of this installer?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Edit XML File logic & Existing XML File

Hi,

If an XML file is already in a folder and the "Update, first matching" option is set for an element, then, if the exact element is found in that XML file, it will be updated, even if that file was not installed by this instance of the installer.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Edit XML File logic & Existing XML File

Thanks! That's what I thought but we had an instance where this didn't happen so I will need to investigate. Cases like this I think setting the "key" item helps make the match.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Edit XML File logic & Existing XML File

You're welcome.
Cases like this I think setting the "key" item helps make the match.
Yes, the "Is identifier attribute" option should help. It was added especially for cases when an element is searched, but more elements in an XML file can match it, therefore the difference can be made using this option.

Just let us know if you need help anymore.

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

Return to “Common Problems”