I've created a windows form application ( called MyWinformsApp) with a personalized data per installation located in the App.config file. I need to build a generic installation file: so the personalized parameter must be included in the setup project. Therefore, I've build a setup project (called SetupProject which is linked to MyWinformsApp) using visual studio and I've added a Textbox field as an input for my personalized field. My question is : How can get the value of the textbox from the SetupProject and use it to update the App.config (of MyWinformsApp ). Thanks in advance.
In fact the custom install class should be added under the main project. Then we reference the class in the setup project. Just we need to add the class like this: Right click on the setup project-->View --> Custom Actions --> Select our project Output.