Add/Remove Application using .Net Setup Project

mkolias

Member
Joined
Feb 5, 2007
Messages
9
Programming Experience
5-10
Does anyone know if you can adjust the Setup Project in a .net application to uninstall an existing version of the application and then reinstall the new version? I have a program that gets updated frequently. This would save me and my department a bundle of time.

Thanks in advance.
Mike
 
Yes, on the project simply change the "RemovePrevious" property from "False" to "True"

then when the next version is installed, the previous version is removed automatically first
 
I made the adjustment to the property and rebuilt the setup project. When I ran the setup.exe on the application I got a popup box that read:

Another version of the product is already installed. Installation of this version can not continue. To configure or remove the existing versionof this product, use Add/Remove Programs on the control panel.
 
You also have to change the Version number of the setup project.
 
Back
Top