Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6048947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:31:14+00:00 2026-05-23T07:31:14+00:00

I have a Visual Studio 2010 solution with 8 projects. It also has a

  • 0

I have a Visual Studio 2010 solution with 8 projects. It also has a Setup project which I build to create the installation.

It works fine when it’s the first installation on a client PC. However, I then modify my project, and build a new Setup, and pass it onto clients. When this happens, the client has to first, manually, uninstall the last installation, and then run the setup.

If they run the setup, without uninstallaing, it seems it doesn’t overwrite existing files (exe as well as the dlls). Usually it’s just the exe that gets modified. However, it doesn’t overwrite it. The version on the client machine seems to stay the same.

Is there a way to force it to overwrite?

Note that when I modify my main application project, I go to the properties of the project, assembly information, and increase the Assembly Version as well as the File Version.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:31:14+00:00Added an answer on May 23, 2026 at 7:31 am

    The visual studio installer is not the most user friendly compared to commercial products or even WiX if you are after a good level of control over you installation.

    When you have a Visual Studio Setup project you have several properties that are involved in the Upgrade process

    1) The Upgrade Code – this is the link between installers of the same ilk and you shouldn’t change this code needlessly

    2) The Version number – strangely only the 1st 3 numbers (major.minor.build) are used for comparison (this is a common mistake that a lot of developers make)

    3) The Product Code – As soon as you change the version number VS will prompt you to change this number – do it – if you automate the number change remember to do this as well

    4) DetectNewerInstalledVersion – set to True

    5) RemovePreviousVersions – set to True

    Personally I’d look at using WiX for such a small installation i.e. if you can do it in Visual Studio then the WiX version

    My installer for OpenCover looks like this

    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" >
    
    <Product Id="*" Name="OpenCover" Language="1033" Version="!(bind.FileVersion.OPENCOVER_FRAMEWORK_DLL)" 
            Manufacturer="OpenCover @ GitHub" UpgradeCode="2250c3f1-d9ba-44d8-b4db-25f91fe92dc6">
    
        <Package InstallerVersion="200" Compressed="yes" />
    
        <Upgrade Id="2250c3f1-d9ba-44d8-b4db-25f91fe92dc6">
            <UpgradeVersion OnlyDetect="no" Property="PREVIOUSFOUND" Minimum="1.0.0.0" IncludeMinimum="yes"
                            Maximum="!(bind.FileVersion.OPENCOVER_FRAMEWORK_DLL)" IncludeMaximum="no" />
    
            <UpgradeVersion OnlyDetect="yes" Property="NEWERFOUND" Minimum="!(bind.FileVersion.OPENCOVER_FRAMEWORK_DLL)"
                            IncludeMinimum="yes" />
        </Upgrade>
    
        <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
    
    ...
    
    </Wix>
    

    I hope you find the above useful

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Visual Studio Setup Project that I use to install a fairly
I have a Visual Studio (2008) solution consisting of several projects, not all in
I have a Visual Studio Solution. Currently, it is an empty solution (=no projects)
I have a C# console application in Visual Studio 2010. It has a Main()
I have Visual Studio 2005 Professional ENU installed and want to create GUIDs using
Visual Studio ate my toolbar, I opened a solution for a project I've been
Visual Studio 2010 has no longer uses .vsprops files and instead uses .props files.
I have created a very simple window service using visual studio 2010 and .NُET
I am attempting to create a simple silverlight 4 application in visual studio 2010
I have Visual Studio web test attached nicely to a data source, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.