sandal1306
5th November 2005 21:15 UTC
.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
5th November 2005 22:35 UTC
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
6th November 2005 07:32 UTC
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?
sandal1306
7th November 2005 07:56 UTC
Ok my fault.... This is working fine now...
Thank you for your help.
dipal
16th March 2012 12:48 UTC
Please Help
I received exactly same error..can you tell how its got resolved?
Afrow UK
16th March 2012 12:53 UTC
Move MUI_CUSTOMFUNCTION_GUIINIT to before any page macros.
Stu