Archive: MUI uninstall bitmap not working.


MUI uninstall bitmap not working.
Hi.

I'm having some real trouble getting the uninstall bitmap to display in the uninstaller(the large one on the left of the uninstaller window).

No matter what I do, it either doesn't show in the uninstaller, or the compiler tells me "MUI_WELCOMEFINISHPAGE_BITMAP already defined!".

Which is weird since the bitmap name is different, and I'm defining the UNWELCOMEFINISHPAGE_BITMAP the second time.

I have tried to place the !define MUI_UNWELCOMEFINISHPAGE_BITMAP UN_IMG.bmp several different places, I have tried to use it without the UN prefix, I have tried everything it seems, but the darn image will not show up in the uninstaller, or I get the error message when compiling.

I have removed most of the text etc. for the example below. Otherwise that's how it looks.

It's important to note though, that except for that uninstall bitmap thing, this script(or part of the script) works fine:



!define MUI_WELCOMEPAGE_TITLE_3LINES
!define MUI_WELCOMEPAGE_TEXT "blah blah blah"
!define MUI_WELCOMEFINISHPAGE_BITMAP INSTALL_IMG.bmp
!insertmacro MUI_PAGE_WELCOME
!define MUI_LICENSEPAGE_TEXT_TOP ""
!define MUI_LICENSEPAGE_CHECKBOX
!define MUI_LICENSEPAGE_CHECKBOX_TEXT "blah blah blah."
!define MUI_LICENSEPAGE_TEXT_BOTTOM "blah blah blah."
!define MUI_LICENSEPAGE_BUTTON "Next >"
!define MUI_PAGE_HEADER_TEXT "blah blah blah"
!define MUI_PAGE_HEADER_SUBTEXT "blah blah blah"
!insertmacro MUI_PAGE_LICENSE Readme.rtf
!define MUI_DIRECTORYPAGE_TEXT_DESTINATION "blah blah blah"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_TEXT "blah blah blah"
!define MUI_FINISHPAGE_LINK "www.mysite.com"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.mysite.com/example/index.shtml"
!insertmacro MUI_PAGE_FINISH


;--------------------------------


!define MUI_UNWELCOMEFINISHPAGE_BITMAP UN_IMG.bmp
!define MUI_WELCOMEPAGE_TITLE_3LINES
!define MUI_WELCOMEPAGE_TEXT "blah blah blah"
!insertmacro MUI_UNPAGE_WELCOME
!define MUI_UNCONFIRMPAGE_TEXT_LOCATION "From:"
!insertmacro MUI_UNPAGE_COMPONENTS
!define MUI_UNCONFIRMPAGE_TEXT_TOP "blah blah blah"
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!define MUI_FINISHPAGE_TEXT "blah blah blah"
!define MUI_FINISHPAGE_LINK "www.mysite.com"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.mysite.com/example/index.shtml"
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_UNPAGE_FINISH
!insertmacro MUI_LANGUAGE "English"

Interface settings should be set before inserting page macros. Page interface settings apply to all pages of a certain type.
A working example is attached.

OK, thanks for the help. :)

I actually knew about the "put defines first" thing, but I had misunderstood it, and thought I should put each define right before each accompanying 'insertmacro'.