Hi Daniel,
I found this thread exactly talking about a scenario we are also working on:
viewtopic.php?p=97255&sid=5dcff8b1a8971 ... 77d#p97255
Your sample.zip gave us some ideas, but it´s not 100% working for us. We have several version of our product, our customers are on different versions and they might skip some version when upgrading their old systems.
Let´s assume there are 3 versions: 1.0, 2.0 and 3.0
Version 1.0: Based on your sample.aip it contains one value node (kay) with value 7777. "If the element is found" is disabled.
Version 2.0: Based on your sample 2.aip it contains two value nodes (kay),
1st has the value 7777. "If the element is found" is disabled
2nd has the value 22222222. "If the element is found" is set to "Add as new sibling
Installing
Version 2.0 over 1.0 is working as expected, the 1st kay node is untouched, the 2nd kay node is appended after the 1st.
Version 3.0: I created 2 separate 3.0 projects:
a)
sample 3 _ add middle kay as new sibling.aip
1st has the value 7777. "If the element is found" is disabled
2nd has the value 22222222. "If the element is found" is set to "Add as new sibling
2nd has the value 33333333. "If the element is found" is set to "Add as new sibling
Installing
Version 3.0 over 1.0 is working as expected, the 1st kay node is untouched, the 2nd AND 3rd kay nodes are appended after the 1st.
Installing
Version 3.0 over 2.0 is NOT working as expected, the 1st kay node is untouched, the 2nd kay node is DUPLICATED, since Version 2.0 already appened it. So there are 4 nodes in total instead of 3, this is an issue of course.
b)
sample 3 _ do not update middle kay.aip
1st has the value 7777. "If the element is found" is disabled
2nd has the value 22222222. "If the element is found" is disabled
2nd has the value 33333333. "If the element is found" is set to "Add as new sibling
Installing
Version 3.0 over 1.0 is NOT working as expected, the 1st kay node is untouched, the 2nd kay node is MISSING, the 3rd kay node is appended. The missing 2nd node is an isssue of course.
Installing
Version 3.0 over 2.0 is working as expected, the 1st and 2nd kay nodes are untouched, the 3rd kay node is appended.
Please check the 2 new version 3.0 projects I created, everything is included in the attached zip file.
As you can see no matter how I tried to modify my sample 3 project, either upgrade from 1.0 to 3.0 or upgrade from 2.0 to 3.0 is failing. There is no reliable sample 3 yet which would work under all circumstances. Obviously the more product versions are causing more problems.
Could you please have a look at the samples? We need some stable/fixed settings at "Edit XML File" dialog that would always work, so that we could use the same settings for each of our releases. We do not want to refresh the Element Settings for each node before every release
Thanks in advanced!
Best regards,
Zsolt
FOLLOW US
Get the latest news in Application Packaging