Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.NET Setup Program Not removing previous Versions before Installing

Posted on 2011-03-25
1
Medium Priority
?
256 Views
Last Modified: 2012-05-11
Hello,

I am having some trouble with one of my Visual Studio.NET 2008 setup application programs. I need it to check for older versions and uninstall them before installing the new one.

I have several other applications that do this without any problems, but this one does not remove the previous version. The setup process 'appears' to run smoothly, but once it's complete my program is still running the old version.  

I have already modified the properties of my setup program to do:

DetectNewerInstalledVersion = True
InstallAllusers = True
RemovePreviousVersions = True

I increase the version number each time I rebuild the solution and click Yes to the "It is recommended that the ProductCode be changed if you change the version.  Do you want to do this?" dialog box.

The only way to properly install a new version of this app if by going to Add/Remove Programs and remove the existing version before attempting to install the new one.

Is there anything else I should be doing?  

Thanks for all your help.
0
Comment
Question by:TheUndecider
[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 3

Accepted Solution

by:
Avinash Desai earned 2000 total points
ID: 35221727
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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

721 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