Adding 3 Extra Text Lines on MUI Welcome-Finish Pages

From NSIS Wiki
Jump to navigationJump to search
Author: Red Wine (talk, contrib)


Description

The following example on how to add 3 lines extra text for the MUI Welcome-Finish pages provived for the subject at this forum thread.

The Code

outfile '3lines.exe'
InstallDir '$PROGRAMFILES\3Lines Test'
 
!define WELCOME_TITLE 'Welcome to the extra 3 lines test setup wizard. \
This page has extra space for the welcome title!'
 
!define UNWELCOME_TITLE 'Welcome to the extra 3 lines test uninstall wizard. \
This page has extra space for the UN-welcome title!'
 
!define FINISH_TITLE 'Finished the extra 3 lines test setup wizard. \
This page has extra space for the finish title!'
 
!define UNFINISH_TITLE 'Finished the extra 3 lines test uninstall wizard. \
This page has extra space for the UN-finish title!'
 
!Include 'MUI.nsh'
 
!define MUI_WELCOMEPAGE_TITLE '${WELCOME_TITLE}'
!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE '${FINISH_TITLE}'
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_FINISH
 
!define MUI_WELCOMEPAGE_TITLE  '${UNWELCOME_TITLE}'
!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE '${UNFINISH_TITLE}'
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_UNPAGE_FINISH
 
!insertmacro MUI_LANGUAGE "English"
 
Section -
SetOutPath '$INSTDIR'
WriteUninstaller 'uninstall.exe'
SectionEnd
 
Section Uninstall
Delete '$INSTDIR\uninstall.exe'
RmDir '$INSTDIR'
SectionEnd

License

This code example is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this code.

Permission is granted to anyone to use this code example for any purpose, including commercial applications, and to alter it and redistribute it freely.