Has anyone used .NET to detect previous installations and allow the users to decide if they would like to upgrade?
Posted on 2004-10-04
I have a .NET deployment project in which I would like to give the users the option to upgrade if a previous version of the project is detected. Here is the problem at hand:
A .NET deployment project allows a developer to set the RemovePreviousVersions property in an install package, which (when set to True) automatically uninstalls a previous version prior to installing the current version. When set to False, the user is presented with a message box stating that an existing version of the application is installed, and the install exits.
How can/does one add a dialog box to the deployment project which:
a) only shows up if a previous version is detected
b) allows the user to upgrade (i.e., remove the previous version) or exit the install
Any information on how to set this up will be most appreciated!
Thanks a bunch!