Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2006-06-07
Medium Priority
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

planocz earned 750 total points
ID: 16867143
this might help.....

6-Deploying VB.NET Applications



Author Comment

ID: 16869845
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

ID: 21212670
Thank you, vkarumbaiah.

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

571 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