0

i have app.config file in my application for storing/updating connecting strinng to my database.But when i installed my application on user machine i cannot locate the file to update new database link. How can i find the file on user machine .i.e where the file is installed on hard drive.

2
Contributors
3
Replies
14
Views
2 Years
Discussion Span
Last Post by AleMonteiro
0

How did you installed you app in the user machine? Usually the app config file would be at the root folder of the installation, right beside the app exe.

Anyway, that's not a good distribution concept. If you need to change the DB connection for each client, you should make your app do it.

0

i publish my application in folder on desktop and copied the folder on flash drive and run the setup exe on user machine.

0

Are you using ClickOnce or Windows Installer?
If you just publish I think it is always ClickOnce, and you can't configure the path, it'll always install in the users appdata folder.

If you want to have a proper setup, you need to create a windows installer.
Maybe this can help: http://support.microsoft.com/kb/821766

Another option, instead of installing, just compile with release mode and copy the release folder. No install, like a zip.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.