Winform deployment project does not owerrite the exiting/old files

Posted on 2009-02-20
Last Modified: 2013-12-12
I setup project created with Visual studio 2005 is upgraded to Visual Studio 2008 since then it does not remove the old version.

DetectedPreviousVersion and Uninstall old version properties in the installer are set to true.
each time x is incremented by one in the installer propertiese 1.1.0X  

and assembly revision number


Question by:needo_jee

    Assisted Solution

    Not sure if this post will relate, but look at the suggestions in this link:
    LVL 22

    Accepted Solution

    Check a couple of things:

    1 - make sure the upgrade code is the same for each version
    2 - make sure the product code is different for the new version
    3 - try changing the higher number on the assembly, ie instead of, 1.0.x, as you did in the installer.

    The lease significant (4th) is ignored most of the time.
    LVL 12

    Author Comment

    Hello Snarf0001,

    does not matter if you increase build number of revision number .. it results same.

    LVL 12

    Author Comment


    To get it working, it needs following changes.

    1- increase the assembly version by one (does not matter what digit you increase major, minor, build or revision number)
    2- Increase the file version (same as in 1)
    3- Increase version in installer project (deployment project)

    if any of these is same as was in last installed version then it would not overwrite the existing files

    Thanks for your replies...

    LVL 12

    Author Closing Comment

    Thanks for quick replies...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
    This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
    The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
    Introduction to GIMP:  GNU Image Manipulation Program. It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now