Archive: Different licence files for multiple languages


Different licence files for multiple languages
I've a big problem getting my script running with
multible licence files, please have a look at the
attached script.

Thank you very much
Mario


You don't have to use LicenseData, you should use the language string as parameter for MUI_PAGE_LICENSE


first off all thank you for your great Modern GUI.

But I've still problems getting this to work ;(

the following makes no sence

insertmacro MUI_PAGE_LICENSE "${LANG_ENGLISH}"

and this is not working

!insertmacro MUI_PAGE_LICENSE "${LANG_SWEDISH}licence.txt"

is it possible do give some code?

Thank you
Mario


Seeing this below you'll get where you want (at least a part):

!ifdef LANG_ENGLISH
!insertmacro MUI_PAGE_LICENSE "licenceENG.txt"
!else ifdef LANG_SWEDISH
!insertmacro MUI_PAGE_LICENSE "licenceSWE.txt"
!else ifdef LANG_GERMAN
!insertmacro MUI_PAGE_LICENSE "licenceGER.txt"
!else
!insertmacro MUI_PAGE_LICENSE "licenceOthers.txt"
!endif

If you want to include multiple languages in your installer you should use a license language string as parameter for MUI_PAGE_LICENSE. See LicenseLangString in the users manual.


Example script
I don't know where to put:

!ifdef LANG_ENGLISH
!insertmacro MUI_PAGE_LICENSE "licenceENG.txt"
!else ifdef LANG_SWEDISH
!insertmacro MUI_PAGE_LICENSE "licenceSWE.txt"
!else ifdef LANG_GERMAN
!insertmacro MUI_PAGE_LICENSE "licenceGER.txt"
!else
!insertmacro MUI_PAGE_LICENSE "licenceOthers.txt"
!endif

With that - my license page is excluded from the setup.

Could somebody post a script example . or should i use languages.nsi for reference?

Thanks

I think i got it...

Sorry for the post...

MultiLanguage.nsi is everything i need...

Cheers