Previous version of application is not removed when installing new version
I have a setup project which gives me a .exe file
When I try to install this on a machine which already had installed its earlier version...it gives me an error and asks me to remove it from Add/Remove programs.
What should i do, so that the installer either repairs or uninstalls and reinstalls it automatically?