dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Duplicate comments in web.config file.

I am using the XML editor to edit some elements in a web.config file in the Files and Folder section. This works as planned. The problem is if there is an existing web.config file in the destination directory, the existing file will be renamed as web.config.bak etc. and any XML comments in the new web.config file will be duplicated. If there are multiple web.config backup files, the comments will be duplicated by the total quantity of the backup files. I was able to replicate the issue on two different projects. I can eliminate the issue by setting the XML editor not to backup file if an existing web.config file is present, but this is not an option for us as the file must be back up before changes.

Thank you,

Diego
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Duplicate comments in web.config file.

Hello Diego,

Yes, I can reproduce and confirm this issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Duplicate comments in web.config file.

Hello,

This was fixed in version 14.3 of Advanced Installer released on September 18th, 2017.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
InstallerBldr
Posts: 13
Joined: Thu Nov 09, 2017 1:26 am

Re: Duplicate comments in web.config file.

This bug is present in AI Enterprise version 14.6 build 0ef0f1c38d (<- that build number looks really bad, is there a bug in the About AI screen?)
201803051226 AI 14.6 build number looks broken.PNG
201803051226 AI 14.6 build number looks broken.PNG (16.75 KiB) Viewed 9138 times
The bug in the above thread is showing up in an XML config file with comments style:
<!-- XYZ Bindings START -->
201803051209 AIv14.6 still duplicating comments in config files.PNG
201803051209 AIv14.6 still duplicating comments in config files.PNG (527.96 KiB) Viewed 9138 times
This is happening in a child node fairly deep down the tree.
The first comment child of the node is not duplicated.
The 2nd is.
The 3rd is not.
The 4th and 5th are duplicated.

For every time our product installer is run, another duplicate set of lines is added.
201803051225 Every install adds another duplicate.PNG
201803051225 Every install adds another duplicate.PNG (530.58 KiB) Viewed 9138 times

Please advise.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Duplicate comments in web.config file.

Hello,

I've tested your scenario, but I cannot replicate the behavior. Could you please send us the .AIPs (project files) of the old and new version of your product setup to support at advancedinstaller dot com so we can investigate and test them configuration?

Also, in what regards the build name of AI 14.6, the related string is a build id and not a number anymore. We changed the format of our build id in our latest version of AI.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
InstallerBldr
Posts: 13
Joined: Thu Nov 09, 2017 1:26 am

Re: Duplicate comments in web.config file.

Hi Daniel,

Please see the simple demo I attached.

line 86 of Example1.exe.config
line 128 of Example2.exe.config
Attachments
Reproduced.zip
(37.82 KiB) Downloaded 344 times
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Duplicate comments in web.config file.

Hello,

Thank you for the attached sample. I've tested it and replicated the issue. We will try to deliver a fix for this as soon as possible and we will get back to you once we have an update.

Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Duplicate comments in web.config file.

Hello,

We have a RC fix for this issue and we will send it to you by email.

As soon as the fix will be officially available we will update this thread once again.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Duplicate comments in web.config file.

Hello,

This was fixed in version 14.9 of Advanced Installer released on May 24th, 2018.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”