PDA

View Full Version : Help Required : XML File changes during UnInstall



abby27
08-31-2009, 05:05 PM
Hello,
I have a basic MSI project Version 1.0.0 with some XML file changes, which installs successfully and applies the XML changes.

Now, I have a Major Upgrade for this, say 2.0.0. This is configured to 'Install Setup then remove unneeded file' in the Upgrades view.

What happens is that when I try to install 2.0.0 over 1.0.0, the installation of 2.0.0 succeeds, but when it comes to the part where it is uninstalling the 1.0.0, it fails with the message 'Error 27519. Error updating XML file'.

(1) Can someone please show me how to prevent XML file changes from happening during an UnInstall?

The reason it fails to update the XML file is because the containing folder in the Installation Directory has already been removed before it reaches point where it tries to update the XML file.

(2) Can someone show me how to order these actions in the correct sequence (ie) apply XML file changes before removing Folders?

This folder in question has files for ASP.NET website, which is linked to a virtual directory

Thanks in advance