Archive: The Installer color


The Installer color
OK I went now for days through the forums and documentation and can't find anywhere an explenation where they don't epect u know stuff that i can't find in the documentation.. I just startet with NSIS and I really don't know alot of basics.. And it seems those sings r the hardest to find here..
So i gave up and try now posting here..

To my problem. I only want a simple thing like changing the background color of the installer. I could do it in the main window but that grey area doesn't really fit to my color.. so how (and not just a snipped of code wich i don't know how to put in) can i change the grey color of it..


hmm seems like my atachment didn't post the first time


Well, to understand FindWindow and GetDlgItem you need some basic understanding of Windows dialogs and windows. SetCtlColors doesn't require any previous knowledge.


I played around with those commands but at compiling it always says that the function i made it in is not referenced. I know its embarresing basic question.. but i'll ask it anyway.. How DO you reference it? and where in the code r u suposed to? on each page seperatly?


For functions to be referenced, they must be called with Call or be a callback function. What you're looking for is page callback functions. Note that the MUI has different way of defining page callback functions.


Thanks alot for your help...

But I don't really get the hang of the callback function. The read the discription to the funktion u linked to like... well alot... and I'm still not sure how to call it.. The only thing im sure of that it involves show. And i can't make the function in use in the example there..

And u said the MUI does it diferently anyway? Couldn't find alot in the modern UI Readme... meaby im just looking at the wrong places.. but i can't find the right ones...

But thanks for all your help so far


Yep, MUI does it different...

!define MUI_PAGE_CUSTOMFUNCTION_SHOW myWelcomeShowFunc
!insertmacro MUI_PAGE_WELCOME

Function myWelcomeShowFunc
...
FunctionEnd


-Stu

You don't call callback functions. NSIS calls them. They are functions with special names that NSIS identifies and calls in certain situations.