Defcon0
22nd April 2009 00:18 UTC
MessageBox after language selection but before welcome-screen
Hello,
I want to check wheather my software is installed already. is that's the case a message (yesNo) should be displayed that informs the user that he should deinstall first or ignore that.
The problem is, when displaying that message in on.Init there has not been any language selection window already.
How can I solve that problem :( ?
Thanks in forward.
Bye Defcon0
Red Wine
22nd April 2009 10:20 UTC
Move the message into .onGuiInit function.
Defcon0
22nd April 2009 10:33 UTC
When I add
Function .onGuiInit
${if} $LANGUAGE == ${LANG_GERMAN}
Messagebox MB_ICONSTOP|MB_OK "Text1_GER"
Abort
${ElseIf} $LANGUAGE == ${LANG_ENGLISH}
MessageBox MB_ICONSTOP|MB_OK "Text1_ENG"
Abort
${EndIf}
FunctionEnd
before my .onInit Function it says:
Error: Function named ".onGuiInit" already exists.
Anders
22nd April 2009 10:35 UTC
you are using the modern ui or something that has taken over that function, read the MUI docs to get the name of the define you need to use