Change file version on "Modify" mode. - Advanced Installer Community
Eki
Posts: 2
Joined: Mon Nov 10, 2014 9:50 am

Change file version on "Modify" mode.

Hello

I have a problem with using "Modify" mode.

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?

Looking forward for your answer.
Attachments
TestApp.zip
(6.53 KiB) Downloaded 217 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Change file version on "Modify" mode.

Hi and welcome to Advanced Installer forums.

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.

Best regards,
Eusebiu
Attachments
testApp_Fixed.aip
(27.58 KiB) Downloaded 195 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eki
Posts: 2
Joined: Mon Nov 10, 2014 9:50 am

Re: Change file version on "Modify" mode.

Thank you Eusebiu! All is working fine.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Change file version on "Modify" mode.

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”