Solved

Visual Studio Installer: How to automatically uninstall an old version of an application when running the installer

Posted on 2004-09-23
1
313 Views
Last Modified: 2008-03-10
I am developing a Windows Forms application in VS 2003 using C#. I am using a VS setup application to distribute my project. If a user has an old verion of my application on her machine, she has to remove the old version before installing the new version. Is there a simple way to automatically remove the old version of my application rather than requiring the user to do it herself?
0
Comment
Question by:pgormley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
tomasX2 earned 125 total points
ID: 12136469
Yes there is a property of the setup project...
click on the setup project then choose the properties tab... (don´t right click and choose properties)
there should be Remove Older Version property or something similar.
set it to true.
This will work if the Version number of the setup project is greater than the installed version... so you should change the version of the setup project.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question