Skip to content
⌘ NSIS Forum Archive

.onGUIInit issue

6 posts

sandal1306#

.onGUIInit issue

Hi All -

Got issue using .onGUIInit function in my code.
When compiling, I got the following error message

Function: ".onGUIInit"
Error: Function named ".onGUIInit" already exists.
Error in script "stdin" on line 61 -- aborting creation process


But this function is not at all present in my nsi file.

For info, I'm using Venis IX 2.2.5
bholliger#
Hi!

Well, probably you use Modern UI.

If so, you have to use the following code:

!define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit

Function myGUIInit
...your own code...
FunctionEnd

For more information look at "NSIS Modern User Interface" Section "Customize Modern UI Functions".

-Bruno.
sandal1306#
I've updated the code according to your suggestion, but I still don't get the right result.

When compiling I got the following message:
1 warning:
install function "myGUIInit" not referenced - zeroing code (73-80) out

Any suggestions?