NSIS sidebar image not displayed

I want to add sidebar image to finish page of a NSIS installer, because the default empty area on the left side is too ugly:)

After reading documentation, I found that MUI_WELCOMEFINISHPAGE_BITMAP is used to specify sidebar image for both welcome page and finish page

Ok, after trying add it to installer script, I found it didn’t work at all. Following is the source code

!include “MUI2.nsh”

!define MUI_WELCOMEFINISHPAGE_BITMAP “${NSISDIR}\Contrib\Graphics\Wizard\orange-nsis.bmp”

!insertmacro MUI_PAGE_FINISH

Section
SectionEnd

Finally I found that !insertmacro MUI_LANGUAGE “English” is needed, and it must be placed after !insertmacro MUI_PAGE_*. (please check here)

So following code will work:

!include “MUI2.nsh”

!define MUI_WELCOMEFINISHPAGE_BITMAP “${NSISDIR}\Contrib\Graphics\Wizard\orange-nsis.bmp”

!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_LANGUAGE “English”

Section
SectionEnd

But following code will not work:

!include “MUI2.nsh”

!define MUI_WELCOMEFINISHPAGE_BITMAP “${NSISDIR}\Contrib\Graphics\Wizard\orange-nsis.bmp”

!insertmacro MUI_LANGUAGE “English”

!insertmacro MUI_PAGE_FINISH

Section
SectionEnd

 

And if MUI_LANGUAGE is not defined, some text will not be displayed correctly in the installer.

Also MUI_WELCOMEFINISHPAGE_BITMAP will add sidebar image to Welcome page