Archive: Change color of BrandingText ?


Change color of BrandingText ?
Hello All!

Is there a way of changing the textcolor of the Brandingtext ?

I searched the forum and help-files and found following example:


!define MUI_CUSTOMFUNCTION_GUIINIT myGUIInit


Function myGUIInit

FindWindow $0 "#32770" "" $HWNDPARENT

GetDlgItem $0 $HWNDPARENT 1028
SetCtlColors $0 FFFFFF 4C58ff

FunctionEnd

But whatever color values i take, only the background color of the Brandingtext is being changed (blue in this example). The text itself stays greyed out.

My boss wants the text to be black like all all other displayed strings. Is there any way to do this ?

Thanks for your time :)

Greets, Boba


If you're using the MUI, there are actually two branding text controls. Do the same for control #1256 too.


Thanks for your hint. I've tried it, but the behaviour of the control stays the same.

Anything else I could try ?


Maybe that happens because the branding text control is disabled by default. You should make it enabled first (using ResHacker), then apply the colors.

Also, I think the code is a little wrong. See if this works (not tested):


FindWindow $0 "#32770" "" $HWNDPARENT

GetDlgItem $0 $0 1028
SetCtlColors $0 FFFFFF 4C58ff

is it also possible to override the color of the statusbar?


Hurray, it worked !

It was the WS_Disabled Flag. I changed it with "Ressource Hacker" in all EXE-Files I could find in the '\NSIS\Contrib\UIs' Directory and now the BrandingText is plain black :)

Script Code is:

Function myGUIInit

FindWindow $0 "#32770" "" $HWNDPARENT

GetDlgItem $0 $HWNDPARENT 1028
SetCtlColors $0 000000 transparent

FunctionEnd

Thanks for both Your help!

Boba

//Edit: Edited the script...


Whoops! Didn't read the post...


You can also enable the window using EnableWindow instead of changing the resources.