How to include app settings in a Vb.Net setup and deployment project?

Posted on 2006-06-07
Last Modified: 2013-11-18
I have a VB.Net application that consists of an exe and a few components that it uses for database access, email etc.
In addition to the main executable's settings file, each of the components has their own application settings, for example the data access component's settings contains the connection string and the email component contains the location of the mail pickup folder etc.

The problem -
I created an installation file using the setup and deployment project and added the primary outputs of all the projects in my soution and created a setup file.

When I install the application I can only see the application settins file for the startup project , The settings files for the other projects in the solution such as the database component and the email component are not included.

How can I include these app settings files so the are deployed along with the components?

Question by:vkarumbaiah
    LVL 27

    Accepted Solution

    this might help.....

    6-Deploying VB.NET Applications

    LVL 1

    Author Comment

    Hi planocz,
    Thank you for your reply, I looked at this site and though it is a good introduction to package and deployment, it does not answer my question regarding how to include the individual configuration settings for underlying components in a Vb.Net 2005 solution.

    I did however find a way to do this by trial and error. In the interest of sharing here is what I learned.

    In the package and deployment project

    1. Click on the file system editor icon in the solution explorer
    2. Right click on application folder and select project output
    3. Select the component in the drop down in the Add project output group window
    4. Select Primary output and Source Files
    5. Click OK - this will add the primary build output as well as the source files i.e. the .vb and .vbproj files to the output
    6. Click on 'Source files from <component name>' and press F4 (i.e. the properties)
    7. In the properties select Exclude Filter and add *.vb and *.vbproj and any other files you dont want to include in the build output
    8. Build the setup and deployment project

    The individuial config files for the components are included in the build output.

    Expert Comment

    Thank you, vkarumbaiah.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    729 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

    18 Experts available now in Live!

    Get 1:1 Help Now