Archive: How to get a 2nd language license text


How to get a 2nd language license text
This is my very 1st attempt to use NSIS. I used the HM NIS Editor using the assistent to create the installer successfully.
Then I added some statements to allow an additional license text in a 2nd language (english, 1stis german) depending on the selection. The german license screen is ok, but installing in english the rtf field is empty and I get following messages during compile:

2 warnings:
LicenseLangString "license" set multiple times for 0, wasting space (C:\DatVS\Visual Studio 2008\Projects\Ortsfamilienbuch\setup\ofb-setup.nsi:58)
LangString "license" is not set in language table of language English

The code is:
...
; License page
;!insertmacro MUI_PAGE_LICENSE $(license)
...
; Language files
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"

; next 2 lines added manually acc. 4.9.15.3 of the script reference
LicenseLangString license $(LANG_ENGLISH) ..\BasisFiles\ofb-lizenz-en.rtf
LicenseLangString license $(LANG_GERMAN) ..\BasisFiles\ofb-lizenz.rtf

; MUI end ------
...

Can someone tell me what to change to get this working:
Get the correct language licence text after selecting the language immediately after start of the installation.
Thanks in advance

dhesmer


Did you already take a look at the included example languages.nsi?


You will find that it needs to be curly brackets not curved brackets around LANG_ENGLISH and LANG_GERMAN.

Stu


Originally posted by Afrow UK
You will find that it needs to be curly brackets not curved brackets around LANG_ENGLISH and LANG_GERMAN.

Stu
Thanks a lot, that's it

Diedrich