Archive: header bitmap problem


header bitmap problem
hi,

i have a problem. i was using v2.0b2 when i read in forum that the latest cvs suports header bitmap. i download it and tried to include it but with no succes. this is the message i get in the compiler log:

!define: "MUI_SPECIALBITMAP"="modern-wizard.bmp"
!define: "MUI_UI"="C:\Program Files\NSIS\Contrib\UIs\modern_headerbmp.exe"
!define: "MUI_UI_HEADERBITMAP_RIGHT"="modern-header.bmp"
!insertmacro: MUI_LANGUAGE
Error: "C:\Program Files\NSIS\Contrib\UIs\modern_headerbmp.exe" doesn't contain a dialog with the ID 102!
Error in macro MUI_INTERFACE on macroline 101
Error in macro MUI_SYSTEM on macroline 15
Error in macro MUI_LANGUAGEFILE_BEGIN on macroline 7
!include: error in script: "C:\Program Files\NSIS\Contrib\Modern UI\Language files\English.nsh" on line 9
Error in macro MUI_LANGUAGE on macroline 6

and this is my code:

!define MUI_UI "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe"
!define MUI_UI_HEADERBITMAP_RIGHT "modern-header.bmp"

helppppppppppp!!! please !!!

and by the way, i used modern2.exe (for the options page format) where is it ???

thank you.


have a problem. i was using v2.0b2 when i read in forum that the latest cvs suports header bitmap. i download it and tried to include it but with no succes.
replace:

!define MUI_UI "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe"

by (for graphic in the left of the header):

!define MUI_UI_HEADERBITMAP "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe"

Or if you and the graphic in the right of header, replace by:

!define MUI_UI_HEADERBITMAP_RIGHT "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe"

and by the way, i used modern2.exe (for the options page format) where is it ???
Now is modern_smalldesc.exe, this have to be used in this way now:

!define MUI_UI_SMALLDESCRIPTION "${NSISDIR}\Contrib\UIs\modern-smalldesc.exe"

ok. done.

i do not have errors now, but how do i include the header bitmap?

thanks for helping.


There is abolutely no need to define all those UI's, it automatically uses the default ones.

For the description, just add:
!define MUI_COMPONENTSPAGE_SMALLDESC

For the header bimap:
!define MUI_HEADERBITMAP "file.bmp"

That's all :D


thank you
thank you
thank you
thank you
thank you

very much !!!

one more question:

can i put a custom size bitmap for header ??


Currently the only possibility to use a custom size bitmap is to use a customized UI file.

The default size is 150x57 pixels on the default DPI (it will be resized when the user uses a custom DPI setting).


it works.

thank you.


Joost, you are the man! (or woman) :D