When you need to build a new version of your setup project or ship fixes to it, it’s tempting to rebuild the project and try to install the MSI file. Doing so, however, typically launches a message box indicating that another version of the product is already installed and directing you to the control panel to uninstall it.
How to update your product
When you’re ready to build a new version of your product to replace an older one, follow these steps:
- Increment the version property. Visual Studio displays a message box that prompts you to change the ProductCode and PackageCode. Select yes.
- Set the RemovePreviousVersions property to true.
Refer. link : Click here
