Skip to content
⌘ NSIS Forum Archive

Header text for nsdialog

5 posts

ElArZ#

Header text for nsdialog

Hi,

How can i change the header text and subtext of a nsdialog custom page?

The normal method doesn't work: (since obviously it's not a MUI page)
!define MUI_PAGE_HEADER_TEXT text
!define MUI_PAGE_HEADER_SUBTEXT text

Thank you.
ChocJunkie#
I'm using MUI2, my custom page is working, but the header text is not changed.


Page custom nsDialogsPage nsDialogsEnd
!insertmacro MUI_PAGE_LICENSE ".\license.txt"
!insertmacro MUI_PAGE_INSTFILES


Function nsDialogsPage

nsDialogs::Create 1018
!insertmacro MUI_HEADER_TEXT "Title" "Subtitle"
...
nsDialogs::Show

FunctionEnd
What mistake do I not see?

Thanks 🙂
CJ
Pawel#
Try this:
Page custom nsDialogsPage nsDialogsEnd
!insertmacro MUI_PAGE_LICENSE ".\license.txt"
!insertmacro MUI_PAGE_INSTFILES
Function nsDialogsPage
   
   !insertmacro MUI_HEADER_TEXT "Title" "Subtitle" 
   nsDialogs::Create 1018
  
   ...   
   nsDialogs::Show
   
FunctionEnd 
-Pawel
ChocJunkie#
I've already tried that before - I've moved the MUI_HEADER_TEXT through my whole code. But thanks anyway. 🙂