Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st April 2009, 23:18   #1
Defcon0
Junior Member
 
Join Date: Oct 2006
Posts: 43
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
Defcon0 is offline   Reply With Quote
Old 22nd April 2009, 09:20   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Move the message into .onGuiInit function.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 22nd April 2009, 09:33   #3
Defcon0
Junior Member
 
Join Date: Oct 2006
Posts: 43
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.
Defcon0 is offline   Reply With Quote
Old 22nd April 2009, 09:35   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump