Skip to content
⌘ NSIS Forum Archive

problem with the picture being overwitten by text

14 posts

radudinca#edited

problem with the picture being overwitten by text

In the image below you can see the problem ... The text overwrites the picture from the Installer and that looks ugly...



Until now I haven't found any solutions ... Please help 🙂

PS :
link to the picture since it isn't showed here :

http://photos1.blogger.com/x/blogger/8161/3988/1600/740500/bug%20NSIS.jpg
Red Wine#
Can't see the image, however this thread might help you 🙂

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.
radudinca#
this forum has some annoying features... I can't add picture , i can't put url cause instead of it I get a message ( url submited by user ) ...
Red Wine#
Actually they aren't annoying rules... just intelligent rules against spammers who like to put their crap all over, after some days and some posts you shall not have such problems 🙂
Now, what exactly you're trying to achieve, you want to disappear the text or what?
radudinca#
that text shouldn't appear in there ! yes .. i'd like it to disappear or be somewhere else .
Red Wine#
Maybe you should try:
MUI_HEADER_TRANSPARENT_TEXT
MUI_PAGE_HEADER_TEXT
MUI_PAGE_HEADER_SUBTEXT

See MUI documentation,

radudinca#
[B]Maybe you should try:
MUI_HEADER_TRANSPARENT_TEXT
MUI_PAGE_HEADER_TEXT
MUI_PAGE_HEADER_SUBTEXT
I already defined them 🙁 ... doesn't work.
Red Wine#
!define APP_NAME 'Test'

name ${APP_NAME}
outfile '${APP_NAME}.exe'
showinstdetails show
InstallDir '$PROGRAMFILES\${APP_NAME}'

!include 'mui.nsh'

!define MUI_HEADER_TRANSPARENT_TEXT ;in case you add text below

!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
!define MUI_PAGE_CUSTOMFUNCTION_SHOW ChangeHeaderColor
!insertmacro MUI_PAGE_LICENSE '${NSISDIR}\License.txt'

!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
!insertmacro MUI_PAGE_COMPONENTS

!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
!insertmacro MUI_PAGE_DIRECTORY

!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_LANGUAGE "English"

function ChangeHeaderColor
GetDlgItem $1 $HWNDPARENT 1034
SetCtlColors $1 "" "0x00FF00"

GetDlgItem $1 $HWNDPARENT 1039
SetCtlColors $1 "" "0x00FF00"
functionend

Section -
;
SectionEnd
radudinca#
I tried your code ... and it works, but that is not what I wanted 🙂 ... You lose the text, but the picture is still overwritten by white , even if without the writting.
Red Wine#
Well, for me works as expected, I added even a green background to the control to make it more clear.

When I use
!define MUI_HEADER_TRANSPARENT_TEXT
!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
the result is this:
Red Wine#
But when I use
# !define MUI_HEADER_TRANSPARENT_TEXT
!define MUI_PAGE_HEADER_TEXT ""
!define MUI_PAGE_HEADER_SUBTEXT ""
the result is this:
radudinca#
hmm ... i get the second picture even though i use Transparent ....
What version of NSIS do you use ? maybe i have old version