![]() |
#1 |
Junior Member
Join Date: Feb 2019
Posts: 2
|
Using & in !define
I have a define that creates a string with an '&' in it....
!define IHUB_PRODUCT_NAME "OpenText Magellan BI & Reporting System Console 16.6" but when I use this define it removes the '&' (see attachments). OpenText Magellan BI Reporting System Console 16.6" Why is this? and how can I get this to work? |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 893
|
If you have nsis 3, try this:
!define IHUB_PRODUCT_NAME "OpenText Magellan BI & Reporting System Console 16.6" !define IHUB_PRODUCT_NAME_DA "OpenText Magellan BI && Reporting System Console 16.6" Name "${IHUB_PRODUCT_NAME}" "${IHUB_PRODUCT_NAME_DA}" Name has an optional parameter for using doubled ampersands. Also, you can use defines within defines: !define IHUB_PRODUCT_VERSION "16.6" !define IHUB_PRODUCT_NAME "OpenText Magellan BI & Reporting System Console ${IHUB_PRODUCT_VERSION}" !define IHUB_PRODUCT_NAME_DA "OpenText Magellan BI && Reporting System Console ${IHUB_PRODUCT_VERSION}" "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2019
Posts: 2
|
Unfortunatly we are using MakeNSIS v2.46.5-Unicode
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
Why?
Anyway, the 2 parameter version of Name exists in NSIS 2.4x as well IIRC. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|