LangString DESC_SpadNotFound ${LANG_ENGLISH} "Spad 6 has not been found on this computer!"
LangString DESC_SpadNotFound ${LANG_FRENCH} "Spad version 6 n'a pas été trouvé sur votre système !"
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
ClearErrors
ReadRegStr $0 HKLM "Software\Microsoft\Windows\App Paths\winspad60.exe\Path\" ""
${If} ${Errors}
MessageBox MB_OK|MB_ICONINFORMATION "$(DESC_SpadNotFound)"
Abort
${Else}
StrCpy $INSTDIR "$0"
${EndIf}
FunctionEndLangString doesn't work in onInit event
I got a problem : the message $(DESC_SpadNotFound) is always shown in french even when I choose english in the language combobox.