Skip to content
⌘ NSIS Forum Archive

How to use ModernUI language variables

3 posts

Lel#

How to use ModernUI language variables

Hi,
I'm trying to understand how to use the language variables provider by ModernUI, I tried this but I got "unknown variable MUI_UNTEXT_FINISH_SUBTITLE"

Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "${MUI_UNTEXT_FINISH_SUBTITLE}" IDYES +2
Abort
FunctionEnd

What am I doing wrong?

Thanks

bye
any#
hi,

try this:

Function un.onInit
; get selected language to be used in the uninstaller 
 !insertmacro MUI_UNGETLANGUAGE
FunctionEnd
Function un.onUninstSuccess
; show a popup box with success message
 HideWindow
 MessageBox MB_ICONINFORMATION|MB_OK "$(MUI_UNTEXT_FINISH_SUBTITLE)"
FunctionEnd