Frode
Posts: 34
Joined: Thu Feb 26, 2009 3:11 pm

Delete XML element on upgrade

Hi,

I need help to remove a XML element from an application config file during update.

In the 'Edit XML File' dialog there is only an option to remove element on uninstall, how can I accomplish this on an upgrade of my application?

Any ideas?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Delete XML element on upgrade

Hello,

Please keep in mind that the default behavior of an upgrade is the removal of an older product which is replaced by a newer product.
You can take a look on the Upgrades article which may be useful to you.

You can go in the “Upgrades” page where you can set the “Order” property of the application upgrade.

By default, the “Uninstall old version first and then install new version” option is enabled. So, during an upgrade is made a complete uninstall of the application (detect and completely remove older products ), so the related XML File operation will work as expected, and then continue with the installation of the new product.

If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Frode
Posts: 34
Joined: Thu Feb 26, 2009 3:11 pm

Re: Delete XML element on upgrade

Hi,

our project is set to 'Install new version first and then uninstall old version'.

I also thought that remove on uninstall was about uninstall of this version, not uninstall of previous version.

Anyway, this didn't work.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Delete XML element on upgrade

Hello,

Can you please give us a step-by-step test case in order to try to replicate?

Also, 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?
If it contains confidential information you can send us a small test project with 'dummy' resources which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”