Prev Previous Post   Next Post Next
Old 1st September 2013, 03:16   #1
didava
Member
 
Join Date: May 2007
Posts: 98
Red face test internet multiLanguage

Hi this code right?

PHP Code:
Function .onInit
${if} $LANGUAGE == ${LANG_Ger}
    
inetc::head /silent "https://www.yahoo.com" "$SYSDIR\test.txt"
    
Pop $# return value = exit code, "OK" if OK
    
${If} $!= OK
    
GOTO Done
    
${Else}
    
Messagebox MB_ICONSTOP|MB_OK "no internet"
    
${EndIf}
${if} 
$LANGUAGE == ${LANG_ENGLISH}

    
inetc::head /silent "https://www.yahoo.com" "$SYSDIR\test.txt"
    
Pop $# return value = exit code, "OK" if OK
    
${If} $!= OK
    
GOTO Done
    
${Else}
MessageBox MB_ICONSTOP|MB_OK "no internet"
    
${EndIf}
ClearErrors
     Done
:
FunctionEnd 
Plz Sample code !

thanks.
didava is offline   Reply With Quote
 
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