Hello world,
is there any way to make the MUI abort warning (and all other message boxes) use the language specified by MUI_LANGUAGE for their buttons regardless of the OS language?
I have set MUI_LANGUAGE to English.
When the installer runs on a German Windows XP, the abort warning box shows "Ja" and "Nein" buttons below the english message text (instead of "Yes" and "No").
I'd suggest to make all message boxes always use the language defined by MUI_LANGUAGE.
Jens
Besides - do I have any option to make the MUI abort message box use MB_ICONQUESTION instead of MB_ICONEXCLAMATION?
MUI: Wrong language in message boxes
5 posts
Message box buttons can't be localized. See the following for more details:
As for changing the icon, you'd have to edit Contrib\Modern UI\System.nsh.
As for changing the icon, you'd have to edit Contrib\Modern UI\System.nsh.
As most other installation systems I have worked with do have localized message boxes, I suggest that NSIS should offer them too.
A straightforward approach would be to internally use user-defined message boxes with custom button texts.
This would allow NSIS to internally localize the button texts before passing them to the operating system.
In the meantime, is there a way to use my own .onUserAbort function yet still work with MUI? (If I could somehow disable MUI's abort function and use my own instead, I'd be able to use my own message box with customized button texts.)
Jens
A straightforward approach would be to internally use user-defined message boxes with custom button texts.
This would allow NSIS to internally localize the button texts before passing them to the operating system.
In the meantime, is there a way to use my own .onUserAbort function yet still work with MUI? (If I could somehow disable MUI's abort function and use my own instead, I'd be able to use my own message box with customized button texts.)
Jens
You can define your own function with MUI_CUSTOMFUNCTION_ABORT and remove MUI_ABORTWARNING to avoid the other message box. You can use the MessageBox plug-in to change the button texts.
Thank you very much for the hint!
I'll have a look at the plugin and see what I can do.
I'll have a look at the plugin and see what I can do.