I have an msi installer (VS2008 set-up project). What I would like to happen, is for the installer to initially detect if the software is already installed on the machine. If it is, then to uninstall that software and then continue the install.
There are a number of properties, such as DetectNewerInstalledVerision, RemovePreviousVersions and ProductCode that seem to imply this is possible. Currently, I have to regenerate the ProductCode each time, and get an additional entry in my installed program list (Control Panel -> Add / Remove Programs).
Is there a way that I can configure the installer to uninstall any previous versions automatically?