I have a VS2008 setup project, which creates a setup.msi which installs a WinForms application (C#).
Every time I update the version number, the users first have to uninstall the previous version before they can install the new one. Otherwise we get the dreaded "Another version of this product is already installed" message.
This is what I'm doing already when I build a new version of the installer:
- Set RemovePreviousVersions=true and DetectNewerInstalledVersion=true
- Increment AssemblyVersion (of the exe that's being deployed)
- Increment Version (of the setup project)
- Generate a new ProductCode (as prompted by VS, when the Version is changed)
- Leave UpgradeCode unchanged
And yet it still refuses to uninstall the previous version. So, what have I missed? Or what am I doing wrong?
Thanks!