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 3312426
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:59:38+00:00 2026-05-17T21:59:38+00:00

I have a Deployment Project for my VS2008 C# application. When installing a new

  • 0

I have a Deployment Project for my VS2008 C# application. When installing a new version of my application I want to make sure that files are updated with the files contained in the installer.

I want my installer to automatically remove any old version of the installed application. To do that I follow this procedure (also described here):

  1. Set RemovePreviousVersions to True
  2. Set DetectNewerInstalledVersion to
    True
  3. Increment the Version of the
    installer
  4. Choose Yes to change the ProductCode

For the assemblies I make sure the AssemblyVersion is set to a higher version:

[assembly: AssemblyVersion("1.0.*")]

Everything is working as intended except for my configuration files (xml files). Since I cannot find a way to “version” these files I cannot make sure that the files are updated if they have been modified on the target machine.

Is there any way to do this and how?

UPDATE: I have tried the approach/solution/workaround found here

  1. Include the file directly in a
    project with the following
    properties: “Build Action -> Content
    file” and “Copy to Output Directory
    -> Copy always”
  2. Then add it to the deployment
    project via Project
    Output->Database->Content Files

Unfortunately it did not make any difference. The behavior is exactly the same.

  • 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-17T21:59:39+00:00Added an answer on May 17, 2026 at 9:59 pm

    If you’re willing to use Orca (there may be another way to do this method, but it’s the only one I know of) you may be able to set up RemoveFile directives.

    See here for a typically light-weight MSDN document — could be a starting point.
    http://msdn.microsoft.com/en-us/library/aa371201.aspx

    Alternatively you could always create a very simple bootstrapper executable that simply calls “msiexec /i REINSTALLMODE=oums” (or whichever command-line switches are needed). Call it setup.exe if you like…

    Better option long-term may be to switch to InstallShield or similar — VS2010 includes a light version of IS and I believe they’re moving away from vdproj projects.

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

Sidebar

Related Questions

I have a web application that I'm trying to create a Web Deployment Project
I have a VS2005 deployment & setup project, that makes use of the Tablet
I have a very simple VS2005 deployment project that aims to install for all
I have an sf1.2 based project that works in the local deployment. I deployed
I have a web deployment project that is misbehaving. I have inherited an App_Data
I have a web application deployment project setup for an ASP.NET application with Visual
I have several deployment projects. In order to deploy an application, I need to
I have created a clickonce deployment and published it to a website. I want
I have a problem with a ClickOnce deployment of a Windows Forms application. When
I have an application that is a not so simple Windows service (C#). 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.