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!

tardas1
Posts: 17
Joined: Wed Sep 06, 2017 6:30 am

Imported XML is changing when patch applied

Hello,

I am trying to update my files by patch. I have an imported xml that all nodes have same attributes.

Create element if it doesn't already exist. CHECKED
If the element is found->Update->First Matching. CHECKED
Condition is 1
Remove element on uninstall. CHECKED

There is no problem when applying updates. Xml file is not changing.
When i applied a new patch, it changes with errors. Some nodes are changed, some are deleted.

For Example: v1 is my base version of web.config, v2 is patched version.
v1:

<!--
test comment1
test comment2
-->
<assemblies>
<add assembly="assembly1"/>
<add assembly="assembly2"/>
<add assembly="assembly3"/>
<add assembly="assembly4"/>
<assemblies>

v2:
<!--
test comment1
test comment2
-->
<!--
test comment1
test comment2
-->

<assemblies>
<add assembly="assembly4"/>
<add assembly="assembly2"/>
<add assembly="assembly3"/>
<add assembly="assembly4"/>
<assemblies>
Is there any bug or am i doing something wrong?
tardas1
Posts: 17
Joined: Wed Sep 06, 2017 6:30 am

Re: Imported XML is changing when patch applied

Any ideas?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Imported XML is changing when patch applied

Hi,

Sorry for the delayed reply.

In order to have the XML file not modified on a patch installation, you can go in the "Table Editor", "InstallExecuteSequence" table and set the following condition for the "AI_XmlInstall" row: (REMOVE <> "ALL") AND (NOT PATCH)

Let me know if this helped.

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

Return to “Building Installers”