Edit XML file - not updating all of xml - Advanced Installer Community

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!

GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Edit XML file - not updating all of xml

Hi,

I have a strange problem. I am updating a configuration xml file within the AIP using the Edit XML feature. I update a number of elements based on certain criteria. For the past few weeks, this has been working fine. Today, I added a new section to be updated. The old section still updates but the new section doesn't. I've stripped back everything to see where the problem was, thinking it might have something to do with the way I reference the element to add/update within the hierarchy of the relevant node. However, I can't even add a new element to the root of the xml document. But oddly, the existing stuff that has been working for weeks still works!

I feel I am doing something obviously wrong, but can't see it. Basically the new element is created if it doesn't exist. I've called it "glenn" and it has no attributes or values (as I said above, I've gone right back to the bare bones!). After installing the app, the element <glenn /> is not there!

Now, the only thing I can think of is that the folder that contains the configuration file is synchronised using the command line version of AI. I am not sure this is significant because the existing stuff works fine.

Any ideas what the problem may be?

Confused!

Glenn
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Edit XML file - not updating all of xml

Hi Glenn,

I'm not sure why this happens. Can you please send us the .AIP (project) file with the problem and the original XML to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GlennWilson
Posts: 33
Joined: Wed Sep 01, 2010 2:22 pm

Re: Edit XML file - not updating all of xml

Hi,

Thanks for the reply. I actually fixed this problem soon after posting. It was due to a problem with a setting I was adding to an INI file. I had set a value in an INI file that, due to a number of changes I had made, was no longer relevant. As a result, the AI application seemed to ignore the changes I was making to the xml file. Once the rogue INI file entry was cleaned up, it all started working again.

Glenn

Return to “Common Problems”