In the WiX installer, or just in a .msi file, is it possible to copy files before the program uninstalls the previous version?
The previous version has a database and user settings files. I want to copy those to a temp directory, then copy them to the installed directory after the installer installs the new version.
I currently have
DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
I could change the uninstall to later if that helps.
Should I use a custom action that runs a batch file or something, or can I do the copy within WiX using CopyFile, FileExists, stuff like that? Example?