Skip to content
⌘ NSIS Forum Archive

MUI_PAGE_DIRECTORY - text size

3 posts

Ginndora#

MUI_PAGE_DIRECTORY - text size

Hi All -

I am working on editing an existing installer and some of the text has been changed on the MUI_PAGE_DIRECTORY and MUI_UNPAGE_CONFIRM.

The text for the Title appears to be only one line and the text I have in there now is too long. Is there a way to make the text smaller, or much like the Welcome Page can you use !define MUI_WELCOMEPAGE_TITLE_3LINES to create more space for the title? Is there a function that I can create that will adjust the text size?

Thanks!
T.Slappy#
You can set font size of this text to your own value - or you can adjust controls height (create more or less lines).
Open the Welcome.nsh (located in NSIS\Contrib\Modern UI 2\Pages\ folder) which contains the welcome page macros.

Set font size:
CreateFont $mui.WelcomePage.Title.Font "$(^Font)" "12" "700"

Setting control's height is also easy:

;Title
!ifndef MUI_WELCOMEPAGE_TITLE_3LINES
!define MUI_WELCOMEPAGE_TITLE_HEIGHT 28
!else
!define MUI_WELCOMEPAGE_TITLE_HEIGHT 38
!endif