Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   MessageBox after language selection but before welcome-screen (http://forums.winamp.com/showthread.php?t=305584)

Defcon0 21st April 2009 23:18

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 09:20

Move the message into .onGuiInit function.

Defcon0 22nd April 2009 09:33

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 09:35

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


All times are GMT. The time now is 17:49.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.