473,550 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Add Config File to the Setup Project


I have built a windows service in VS2005, C#.

I am curious about the proper way to add the WindowsService2 .exe.config
to the setup project?

Right now I am adding a custom action to the Application folder for the
"Primary output from WindowsService2 (Active)"

However my WindowsService2 .exe.config is not being installed to the
Application folder.

What is the correct procedure to ensure that the .config file gets
copied to the Application folder?


Dec 31 '05 #1
4 3023
Have you setup an app.config file in the service project? I've never
done anything with the .exe.config file, it just shows up automatically
when the service is installed based on the contents of app.config.


Dec 31 '05 #2
Hmmm app.config seems to be missing. Any idea how to re-create it?


Dec 31 '05 #3
On 31 Dec 2005 12:05:31 -0800, "Guy Noir" <ah******@gmail .com> wrote:
Hmmm app.config seems to be missing. Any idea how to re-create it?


Right click on the project and click Add New Item, then choose
Application Configuration from the templates...
Jan 1 '06 #4
Got it, thanks!

Jan 1 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Darwin Fisk | last post by:
I have an app that is deployed that uses .config file settings. I have an update of that app that I am installing using a setup and deployment project. The basic setup process works fine. Now I want to get a little fancier. I need to have the setup process check for the existence of the .NET Framework and install it if it is not present....
by: ALI-R | last post by:
Hi,, I have two questions : 1) Is it mandatory that config file of a desktop application must be App.config 2) Is it possible to update config file in your code?? thanks for your help. ALI
by: Craig | last post by:
In development for a windows app, is it proper to manipulate and keep versions of the MyApp.exe.config or just the App.config file?
by: Walter W | last post by:
hi, i need to deploy two asp.net web projects which together form one single solution. these two projects will be installed in different virtual directories. i could create two setup projects to include the primary output and content files from the each project. but how can i merge them into one ..msi file?
by: Henry | last post by:
Hi, in a Windows form VB.Net project I use localization for all texts. In App.Config I added: <appSettings> <add key="locale" value="de"/> </appSettings> In the project I have ressource files strings.resx (English text) and strings.de.resx for the German texts.
by: Keith Elder | last post by:
Let's say you have a stand alone C# library project that is your datalayer. When this library compiles it will produce "My.DataLayer.dll" for example. In the project you use all the new whizbang DataSet generation tools to create some datasets, etc in your DataLayer project. When you setup a connection string it adds a settings.settings...
by: Gary McGill | last post by:
Hi, I have a setup project; one of the files that gets installed is a .config file. If a user modifies the .config file and then un-installs my app, I'd like the .config file to NOT get deleted by the uninstall (so that when he re-installs later his modified .config file is used rather than the default one that the installer would normally...
by: MJB | last post by:
I have several dlls that have app.config files tied to them. When adding their primary output to a Setup project everything works fine, but only the app.config for the .exe gets added to the Setup project automatically. Is there any way to get the app.configs for the dlls added to the Setup without manually doing "Add File"? Thanks for the...
by: zeenets | last post by:
Dear All, I make setup and deployment project in windows application. and use project primary output in setup. after installing on client machine my app.config file is ther."ApplicationName.exe.config". This file contains connectionstring and other sensitive data. Problem is how we can make setup in which this configuration file is not visible?...
by: pedro | last post by:
application cannot read the app.config file i have a config file for the executable i try to read it but it throws an exception when building the setup for the project vs2005 do not add the app.config automatically public Form1()
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.