Archive: .onGUIInit issue


.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


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.


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?


Ok my fault.... This is working fine now...

Thank you for your help.


Please Help
I received exactly same error..can you tell how its got resolved?


Move MUI_CUSTOMFUNCTION_GUIINIT to before any page macros.

Stu