Solved

.NET Setup Program Not removing previous Versions before Installing

Posted on 2011-03-25
1
252 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 500 total points
ID: 35221727
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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