Archive: Install files based on language


Install files based on language
Hi all,

I have an install with a language selection dialog and folders with files for each language (english folder, french folder....). I need to install only that folder that corresponds to language selection (if user choose english only english folder will be installed)...I don't know how to change the file path at compiling:stare:
Section
${Select} $LANGUAGE
${Case} ${LANG_ENGLISH}
;install english folder
${Case} ${LANG_GERMAN}
;install german folder
${Case} ${LANG_FRENCH}
;install french folder
${EndSelect}
SectionEnd

Please help me...


If you want install files of different languages to the same folder, e.g.:

SetOutPath $INSTDIR\Lang
${Select} $LANGUAGE
${Case} ${LANG_ENGLISH}
File .\lang\en.dll
${Case} ${LANG_GERMAN}
File .\lang\de.dll
${Case} ${LANG_FRENCH}
File .\lang\fr.dll
${EndSelect}

If to different directories, e.g.:

${Select} $LANGUAGE
${Case} ${LANG_ENGLISH}
SetOutPath $INSTDIR\en
File .\lang\en.dll
${Case} ${LANG_GERMAN}
SetOutPath $INSTDIR\de
File .\lang\de.dll
${Case} ${LANG_FRENCH}
SetOutPath $INSTDIR\fr
File .\lang\fr.dll
${EndSelect}


yes but are many files...and 5 languages...so for every language i must repeat the same statement...i wanted to use a variable that will be changed according to user language choice(english, french...)


Using /r options of "File" command.

I wanted to use a variable that will be changed according to user language choice
$LANGUAGE will change according to user's selection on language selection dialog.
If this is not still what you want, I really do not know.