I am creating a C# windows form applications, the working can be summarized as users fills some form...
I am creating a C# windows form applications, the working can be summarized as users fills some form and data is saved in Access database. Now the problem I am facing is that I have to deliver this as a setup file to someone. What I am thinking is that the code once installed on other computers and executed will give errors because of the connection string of Access db, as it will not match with that computer. I know that if a distribute projects I can put connection string in app.config and every user can change it according to his/her machine. But as I am giving a setup file how to solve this problem.
Hemant SrivastavaPosted Nov 13, 2012, 10:39 AM
When you would run your setup, the configuration file (having name "YourWinFormAppName.exe.config") will be placed in the same folder from where you would run your WinFormApplication.
Give the path of that folder to users, users can change Database connection string in app.config.
How to setup installer project, you may visit:
http://hemant-srivastava.blogspot.com/search?q=setup
Let me know if you have any issue. If it helps, please mark it as accepted.