Archive: & symbols in strings and designs


& symbols in strings and designs
Hi,

I need to put an & symbol in a define i.e.

!define MUI_PRODUCT "Starsky & Hutch"

in some instances it prints the string correctly and other its missing. Using !define MUI_PRODUCT "Starsky && Hutch" prints correctly in most places but in others shows up as two & symbols which is not what I want. I am presuming this is because & is a special character in some instances. Is there any way that i can get around this?

Stuart


In which circumstances does it display two & symbols. I was under the impression that you always had to use && to get a single & char.

Vytautas


Hi Vytautas,

I am using the MUI and have the following defines at the top of the install.

Caption "Starsky & Hutch Demo V1.1"
UninstallCaption "Starsky & Hutch Demo V1.1"

!ifdef USBUILD
!define MUI_PRODUCT "Starsky && Hutch"
!define MUI_PRODUCT_DIR "Gotham Games\Starsky & Hutch Demo"
!define MUI_PRODUCT_REG "Empire Interactive\Starsky&Hutch"
!define MUI_PRODUCT_PUB "Gotham Games"
!define MUI_VERSION "1.1"
!else
!define MUI_PRODUCT "Starsky && Hutch"
!define MUI_PRODUCT_DIR "Empire Interactive\Starsky & Hutch Demo"
!define MUI_PRODUCT_REG "Empire Interactive\Starsky&Hutch"
!define MUI_PRODUCT_PUB "Empire Interactive"
!define MUI_VERSION "1.1"
!endif

The title bar reads "Starsky & Hutch Demo V1.1"

If I use a multi lingual setup, the title bar reads (in french version) "Installation de Starsky && Hutch 1.1"

Which is not the english caption but the one imposed by the multi lingual interface and it has 2 &'s in it.

Another example is-

if i press cancel I get the message "Are you sure you want to quit Starsky && Hutch Setup?"

Any idea's?

Stuart


Fixed on latest CVS

From now on, you only need one char & on your strings

cyas,
Ramon