Skip to content
⌘ NSIS Forum Archive

MUI minor bug in display

3 posts

Brummelchen#

MUI minor bug in display

The MUI isnt perfect at all...

When i get the welcome page with 3 lines, the last line is not shown

eg:
"Willkommen beim Installations-
Assistenten für <Applikation>
..."

"..." are only some points from the chars that needs to be show.

the part of my modifikcation is in the SYSTEM.NSH around line 1113

!macro MUI_FUNCTION_WELCOMEPAGE PRE LEAVE

Function "${PRE}"

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "NumFields" "3"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "NextButtonText" ""
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "CancelEnabled" ""

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 2" "Text" "${MUI_WELCOMEPAGE_TITLE}"

!ifndef MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 2" "Bottom" "48"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Top" "55"
!else
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 2" "Bottom" "58"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Top" "65"
!endif

!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Bottom" "195"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Text" "${MUI_WELCOMEPAGE_TEXT}"
(values are increased by 10)

HTH
Joost Verburg#
If you had looked in the documentation it would have saved you a lot of time 🙂

Define MUI_WELCOMEPAGE_TITLE_3LINES before the page macro (assuming you are using the latest NSIS 2 version).