Skip to content
⌘ NSIS Forum Archive

Ampersand Issue

3 posts

Ginndora#

Ampersand Issue

Hi All -

I am new to nullsoft, NSIS, and I am taking over learning it from another engineer. With that said I will try to outline my issue as best I can but I may use basic terms as I am still trying to understand the process.

We are creating installers for our product that has an Ampersand in the name and we are reading in our variables from an XML file. In order to use the character in xml, we are using &.

Our issue is that when you process our installer script we get the proper ampersand showing in the top bar of the window (the bar where the X is to close the window), and the Destination path, however the text within the window does not show an ampersand. Instead of showing "Jake & Mark" it shows "Jake Mark".

I have looked through the forums and it appears to be the number of times it renders the characters. So I added and extra & to my XML, so it appears as Jake & & Mark, and sure enough it renders properly in the inside text...however in the top bar of the window and Destination path we end up with two ampersands, like "Jake && Mark".

1) Is there a way to differentiate these two "product names?" Have one that I can identify as Jake & Mark and one as Jake & & Mark for the render process?
OR
2) Is there a way to add a some code to my file to properly render the ampersand in both places?

Thanks for any and all assistance.
G