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.
FOLLOW US
Get the latest news in Application Packaging