netslt
15th May 2005 20:07 UTC
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...
Afrow UK
15th May 2005 20:29 UTC
StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +2
WriteRegStr HKCU "Software\MyApp" "Labguage" "English"
etc
-Stu
netslt
15th May 2005 20:52 UTC
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!
Afrow UK
16th May 2005 13:10 UTC
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