Skip to content
⌘ NSIS Forum Archive

can't insert function .onGUIInit

3 posts

peeratep#

can't insert function .onGUIInit

Function: ".onGUIInit"
Error: Function named ".onGUIInit" already exists.
i check function .onGUIInit readly...not exist
Animaether#
are you sure? are you using the Modern UI, perhaps? If so, check the Modern UI documentation for "Customize Modern UI Functions"
Comm@nder21#
These defines should be set before inserting the language macros.

MUI_CUSTOMFUNCTION_GUIINIT function
MUI_CUSTOMFUNCTION_UNGUIINIT function
MUI_CUSTOMFUNCTION_ABORT function
MUI_CUSTOMFUNCTION_UNABORT function
you need to use these defines, as MUI already uses those functions itself.