Archive: Splash Screens & BGGradient


Splash Screens & BGGradient
As the title suggests I am using splash screens and BGGradient in my installer. I would like to change the sequence of events regarding how these are handled.

As things are the the moment the follow happens:

1) Splash screen display modal
2) Wait X seconds
3) Close splash screen
4) Launch install welcome form with BGGradient background

I would like to do the following instead

1) Lauch BGGradient background
2) Imediately display splash screen
2) Wait X seconds
3) Close splash screen
4) Launch install welcome

Is there anyway to do this?

If it makes any difference my splash screen code is in .onInit.


Use Function .onGUIInit


Funnily enough I have tried that already, unfortunately I get the following error:

Error: Function named ".onGUIInit" already exists.
Error in script "D:\Archive\Work\TestInstaller\Example2.nsi" on line 57 -- aborting creation process
I am 100% certain there is not onGUIInit already in my script, however there is one in the MUI System.nsh file.

I am hoping to find a solution that doesnt need me to hack around the MUI scripts

It's under the hood. Use MUI_CUSTOMFUNCTION_GUIINIT. See the MUI readme for more information.