before stating the problems here is the code (Ver 2.30, rtl.bmp is attached, I'm using Win XP SP2):
!include "MUI.nsh"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "rtl.bmp"
!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
!define MUI_HEADERIMAGE_BITMAP_RTL "rtl.bmp"
!define MUI_HEADERIMAGE_BITMAP_RTL_NOSTRETCH
!define MUI_HEADERIMAGE_UNBITMAP "rtl.bmp"
!define MUI_HEADERIMAGE_UNBITMAP_NOSTRETCH
!define MUI_HEADERIMAGE_UNBITMAP_RTL "rtl.bmp"
!define MUI_HEADERIMAGE_UNBITMAP_RTL_NOSTRETCH
!define MUI_ABORTWARNING
OutFile "demo.exe"
InstallDir "$PROGRAMFILES\Demo"
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Arabic"
Name "Demo"
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
;!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
;!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
Section "Demo"
SetOutPath $INSTDIR
; Put file there
WriteUninstaller "$INSTDIR\uninstall.exe"
SectionEnd
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\Demo"
CreateShortCut "$SMPROGRAMS\Demo\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
SectionEnd
Section "Uninstall"
RMDir /r "$SMPROGRAMS\Demo"
RMDir /r "$INSTDIR"
SectionEnd Now to the problems:1 - Uninstall bmp image is not shown when uninstalling.
2 - When selecting arabic language the header image is not shown fully (just part of it). I have reported this in:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
3 - Remove the comments for MUI_PAGE_WELCOME & MUI_UNPAGE_WELCOME and the compiler will report these errors:
Error: resolving uninstall function "un.Nsis2Io" in function "un.mui.WelcomePre_43.7.5.9"
Note: uninstall functions must begin with "un.", and install functions must not
Error - aborting creation process Please help. thanks