.config files and Setup projects
-
Hello everybody, Perhaps someone has experienced the same problem as I had: I have developped an application and this application is a bit complexe to configure: several DBs, some parameters that depends on the system (such as log files path) and so on. These configuration item are stored in the .config file. Now, I want to distribute my application. So I built a setup project for it. My problem is that the msi file contains my .config parameters which will not work on an other system. The simple solution is to edit manually the config file after install, which is not very convenient. I was wondering if there is a way to automaticaly add screens in the setup wizard to configure the application and write the config file while installing. tahnks in advance.
-
Hello everybody, Perhaps someone has experienced the same problem as I had: I have developped an application and this application is a bit complexe to configure: several DBs, some parameters that depends on the system (such as log files path) and so on. These configuration item are stored in the .config file. Now, I want to distribute my application. So I built a setup project for it. My problem is that the msi file contains my .config parameters which will not work on an other system. The simple solution is to edit manually the config file after install, which is not very convenient. I was wondering if there is a way to automaticaly add screens in the setup wizard to configure the application and write the config file while installing. tahnks in advance.
I don't think the setup stuff that comes with VS.NET can do this directly. You would have to create some custom actions which would then do the work of editing the .config file. Some time last year I tried to create a custom action, but eventually gave up on it. I can't remember what I was trying to do though. James "I despise the city and much prefer being where a traffic jam means a line-up at McDonald's" Me when telling a friend why I wouldn't want to live with him