Hello,
Here is my scenario:
My installer has a combo box with a few options in it, lets say the values of those options are ENV1and ENV2. The property (MY_COMBO) on the combo box gets updated depending on what is selected and I use that property to update my web.config file in my install package. The attribute in my web config looks like this: Service.[MY_COMBO].config
My Installer installs a service that uses a certain configuration depending on what option was chosen in the combo box.
Everything works perfectly fine on a First Time Install, the problem is when I try to reinstall/modify the current installation. In the Maintenance installer I choose Modify, which I have customized it to take in the selection of a combo box with the same property as before called MY_COMBO so it can update web.config file. On the VerifyReadyDlg I added the event "Reinstall one or more features" to the Install button with an argument of ALL.(not sure if I should be doing it this way) However, the config file is not getting updated with the new value. I generated a log when doing this and in the log it says it is modifying the MY_COMBO property with the correct value. I just do not know why the file does not change.
I figured the reinstall would workbest for stopping the service, updating the config file, and then starting the service again using the updated config file. Is there an easier way of going about this?
Appreciate any help. Thanks.
FOLLOW US
Get the latest news in Application Packaging