Skip to content
⌘ NSIS Forum Archive

Header in custom page

4 posts

mnegi#

Header in custom page

I have searched a lot on Google and have read many threads on Winamp but not getting the solution.

I have created a custom page using nsDialogs and want to add header to it.

Below is the code
!include nsDialogs.nsh
!include LogicLib.nsh
!include "MUI.nsh"
Name nsDialogs
OutFile Pageheader.exe
Page custom nsDialogsPage
Page instfiles
Function nsDialogsPage
    !insertmacro MUI_HEADER_TEXT "YourTitle" "YourSubtitle" 
    
    nsDialogs::Create 1018
    Pop $0
    ${If} $0 == error
        Abort
    ${EndIf}
    
    nsDialogs::Show
FunctionEnd
Section
    DetailPrint "hello world"
SectionEnd 
I need a help.
Afrow UK#
!include MUI2.nsh

Name nsDialogs
OutFile Pageheader.exe

Page custom nsDialogsPage
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE English

Function nsDialogsPage
!insertmacro MUI_HEADER_TEXT "YourTitle" "YourSubtitle"

nsDialogs::Create 1018
Pop $0
${If} $0 == error
Abort
${EndIf}

nsDialogs::Show
FunctionEnd

Section
DetailPrint "hello world"
SectionEnd
Stu
mnegi#
Thanks a lot Afrow. It have not included the language. I included it and it worked. Again thanks a lot.

I have one more question, How can I change the logo on the right?
Anders#
Originally Posted by mnegi View Post

I have one more question, How can I change the logo on the right?
You can find more information about changing the header image in the Modern UI readme...