Archive: How to use MUI_PAGE_LICENSE with different files per selected language?


How to use MUI_PAGE_LICENSE with different files per selected language?
Hello!

I have beeen using NSIS for some time (even wrote some plugins) when moving to MUI, I encountered some difficulties...

The no-mui code looked like

LicenseLangString LICENCE_FILE ${LANG_GERMAN} "eula-sw-de.txt" 
LicenseLangString LICENCE_FILE ${LANG_ENGLISH} "eula-sw-en.txt"
LicenseData $(LICENCE_FILE)


I have no Idea how to use this with the MUI variant. When simply switching the langauge as above, all other language stringse are *undefined* i.e. I get error messages like
LangString "MUI_INNERTEXT_LICENSE_BOTTOM" is not set in language table of language 1031

It seems that two language tables are countering each other...

Any hints?

Thanks!

Axel

Ok, the trouble is that the MUI_PAGE_LICENSE macro calls
LicenseData which is "early binding".
My current workaround is a copy of the MUI_PAGE_LICENSE macro without the LicenseData - line, and using the LicenseData statement as before after the MUI definitions in the Section part...
Works fine, but maybe the MUI code could be refined ;-)

Axel


The MUI readme explains how to do what you want and you can find an old thread with further details by using the forum search feature to look for "terms of service"