Archive: About Language at Uninstaller


About Language at Uninstaller
i write code like this at Function un.onInit,
ReadRegStr $R0 "${MUI_LANGDLL_REGISTRY_ROOT}" "${MUI_LANGDLL_REGISTRY_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}"
StrCmp $R0 "" SearchSystemLang FoundLang
FoundLang:
StrCpy $LANGUAGE $R0
Goto ContinueUNINST
SearchSystemLang:
Call un.SetUILanguage
ContinueUNINST:
xtInfoPlugin::IsAdministrator
Pop $0
StrCmp $0 "true" continue exit
exit:
MessageBox MB_OK "$(MSG_NOT_ADMINISTRATOR)"
Goto .abort
continue:
System::Call 'kernel32::CreateMutex(i 0, i 0, t "SaybotMutex8888") i .r1 ?e'
Pop $R0
StrCmp $R0 0 continueUNInstall
MessageBox MB_ICONSTOP|MB_OK "$(MSG_UNINSTALL_ALREADRUNNING)"
Goto .abort
continueUNInstall:
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(MSG_UNINSTALL_CONFIRM1) $(^Name) $(MSG_UNINSTALL_CONFIRM2) $LANGUAGE" IDYES .canProceed IDNO .abort
.abort:
Abort
.canProceed:

The language of continueUNInstall hint is not correct but the language for the next window(uninstall window) is correct(just the one selected at installation).
Could anybody help me for that? Great thanks.


It's the same story as for function .onInit, you may want to take a look at this recent forum thread,

http://forums.winamp.com/showthread....hreadid=269755