All right, here is my problem. I developed an app that our company uses and I now have a major update to the app that includes a new data tier using SQL CE instead of an XML file. I need to be able to import the XML file into the SQL CE database. I have code written for that works for that. When I perform an upgrade, I need to uninstall the previous version, but save the XML file so I can import it into the new database. Currently when I remove the previous version, the XML file also gets deleted.
I have been thinking of different ways to do this, but none of them seem to work. First I thought I can just leave the previous version, but the config file does not get overwritten when the updated version is installed. Next I thought I could force the updated version to overwrite any file, but I can't seem to find a way to do that. Third, I thought I could bootstrap a module that copies the the XML file to a temp path and pick it up from there, but I don't know how to get the location where the old version is installed. Last I thought I could write a bootstrap that uninstalls the previous version through msiexec and tell it to keep the XML file, but I don't konw if that is possible. I've been working and searching for three days now and I'm at my wits end. Any help would be greatly appreciated.