Archive: Write language used in installer to registry


Write language used in installer to registry
My installer lets the user choose between two languages.

How can I write the language that the user has chosen to the registry?

The goal is that the application that the installer is installing can see what language the user has chosen during installation.

Thanks for some sample code...


StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +2
WriteRegStr HKCU "Software\MyApp" "Labguage" "English"
etc

-Stu


Thanks!

Would these 4 lines be correct for german and english:

StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +2
WriteRegStr HKCU "Software\MyApp" "Language" "English"
StrCmp $LANGUAGE ${LANG_GERMAN} 0 +2
WriteRegStr HKCU "Software\MyApp" "Language" "German"

Into which section should I write this?

Thanks again!


Well you should put it in a blank section at the end:

Section
SectionEnd

This section will be hidden and will be executed with no user input after all other sections.

-Stu