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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:22:15+00:00 2026-05-25T18:22:15+00:00

I created a visual studio setup project. I want this project to install the

  • 0

I created a visual studio setup project. I want this project to install the output from another project into the path given by the user in the installation folder component. That is already working.

Now I want the installer to check if the output is already installed (perhaps that is going to work with the registry?). If it is already installed, some data from the old app.config should be merged into the new app.config (like connection data entries).

Is there a way to do this?

I found custom actions, but the code from my project does not seem to run:

http://msdn.microsoft.com/de-de/library/d9k65z2d.aspx

I simply try to write into the config file:

string path2Conf = "C:\\Program Files\\Proj\\app.conf";
StreamWriter sw = new StreamWriter(path2Conf);
sw.WriteLine("Hallo1298347645");

But after the installation there is not such a string in the config.

Edit: I added the custom action to install.

  • 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-25T18:22:16+00:00Added an answer on May 25, 2026 at 6:22 pm

    This is not supported by Visual Studio. Also, you can’t do it through custom actions because a Visual Studio setup project doesn’t support running actions before the upgrade starts. You would need to backup the original information before installing your new XML.

    If this issue is a show stopper, a solution is to use another setup authoring tool which supports XML updates or at least offers more control over custom actions.

    If you want a free tool I recommend WiX. It has a steep learning curve but it gets the job done.

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

Sidebar

Related Questions

I created a new Visual Studio Setup project with VS 2008. I use it
I have created a custom dialog for Visual Studio Setup Project using the steps
I have a setup project created by Visual Studio 2005, and consists of both
I have created a setup project using Visual Studio 2008. After the application is
I'm using Visual Studio 2008 and have created a setup project for my application.
if i want to install a MSI, created by Visual Studio 2005, via Active
I am working on a visual studio setup project. I want the setup project
I have created a Windows setup file for my Windows project in Visual Studio
Env: Visual Studio 2008, Shared COM Excel Addin, RibbonX, I use Setup project created
I have created setup project with Visual Studio. I also need some custom actions

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.