Appconfig file in setup


I have created a set up for windows application file using visual studio 2012, but i could not see any app.config file after installing the setup, could you please guide me where does it exactly locates , because i want to change the connection string in the app.config file after completion of the installation of setup

i know this for web applications , but for windows i am facing problem.

Please guide
Who is Participating?
praveen1981Connect With a Mentor Author Commented:

i got it

it stores in the c:\progaramfiles\folderwithSolutionName
Jacques Bourgeois (James Burger)PresidentCommented:
If it is still named app.config, then changing things in there won't change them in the application.

app.config is copied to another file in the application directory. The name of the file is the name of the assembly with a .config extension, such as MyApp.exe.config. This is the one that is used by the application.

Note also that if the entry was marked as a User configuration, the config file is just a template that is used the first time the user starts the application. Changing it later won't change it in the copy that is made in the user's application directory.
praveen1981Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.