We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

XML Format Bug

Hello!

I think this might be a bug with Advanced Installer.

I have an XML file that I'm installing. During Install, I want to update a few of the elements in this XML file with property values (for example: [ProductVersion]). I notice the following:
- If the XML element has a value containing a space (but not only a space), then the value is updated just fine.
- If the XML element does not contain a space (or only contains a space), then the value is prepended with a newline (CRLF).

See the attached screenshot.

On the left (BeforeInstall.xml), you will see the XML file before it has been installed. Notice the "CDKEY" and "USER" elements contain a value with a space.
On the right (AfterInstall.xml), you can see that the "CDKEY" and "USER" elements are updated just fine (with the [CDKEY] and [USERNAME] properties). However, the other elements have a newline prepended to the value.

It's not a huge issue, as it seems the extra newline doesn't affect XML parsing. But, it affects the readability when opening the file in notepad or notepad++.

Thanks.
Attachments
Capture.PNG
Capture.PNG (21.97 KiB) Viewed 2229 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: XML Format Bug

Hi,

I tested the scenario and, indeed, I reproduced the behavior. As you mentioned, it does not seem to affect the XML parsing, however we will investigate this and try to fix it in a future version of Advanced Installer. Thank you for bringing it to our attention.

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

Return to “Common Problems”