I have a project where I need to make changes in the web.config file using "Modify" mode. But when I try input data the web.config file still contains old values.
Can you look at the sample project and tell me what I do wrong?
In order to achieve what you want, you can go in the "Dialogs" page, select the "Modify" button from the "MaintenanceTypeDlg" dialog and add a new "Reinstall one or more features" published event. In the "Argument" field of this event write the identifier of the feature that contains your "XML Update" operation (in your case "MainFeature").
Also, please keep in mind that when you have more elements with the same name in an XML file, you should set an attribute key for them in order for the updates to be done correctly. To achieve this, just edit the attribute that you want to be the key of an element and check the "Is identifier attribute" option for it.
I modified your project and attached it to this thread, so you can see its configurations and also test it.
FOLLOW US
Get the latest news in Application Packaging