Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   install some files with language independent... (http://forums.winamp.com/showthread.php?t=322081)

thanatos83 30th August 2010 13:29

install some files with language independent...
 
Hi...

How can i set in nsis to install some files but only install it with a language specified???

Animaether 30th August 2010 17:45

PHP Code:

!include "logiclib.nsh"

[...]

Section
    
${Select$LANGUAGE
    
${Case} ${LANG_ENGLISH}
        
MessageBox MB_OK "English files"
    
${Case} ${LANG_GERMAN}
        
MessageBox MB_OK "German files"
    
${Case} ${LANG_FRENCH}
        
MessageBox MB_OK "French files"
    
${EndSelect}
SectionEnd 


thanatos83 30th August 2010 20:28

thanks Animaether... I will try it :)

thanatos83 31st August 2010 10:46

OK, work fine... but i get an error about overwriting some files. because i use this comand to decompress a 7z files and overwrites it:

PHP Code:

nsExec::ExecToLog /OEM '"$PLUGINSDIR\7za.exe" x "$EXEDIR\English.7z" -aoa"$INSTDIR"' 

and maybe the switch -aoa doesn't recognizes with "$INSTDIR" or how can i set to overwrite some files in installdir with 7z???

thx...

demiller9 31st August 2010 12:37

try putting the last set of quotes around the switch and path, not just the path:
code:
nsExec::ExecToLog /OEM '"$PLUGINSDIR\7za.exe" x "$EXEDIR\English.7z" "-aoa$INSTDIR"'

thanatos83 31st August 2010 18:59

Hi...

Finally this work for me, thanks for all...

but this code worked for me too:

PHP Code:

nsExec::ExecToLog /OEM '"$PLUGINSDIR\7za.exe" x "$EXEDIR\English.7z" -o"$INSTDIR" -aoa' 

Another issue for me is:

How can i enable the cancel button when i installing my software???, because I can't cancel the installation before finish...

Animaether 31st August 2010 19:08

Enabling cancel button during installation
 
Quote:

Originally Posted by thanatos83 (Post 2693802)
How can i enable the cancel button when i installing my software???, because I can't cancel the installation before finish...

That one's not so easy, unfortunately. NSIS is not engineered to support that easily out-of-the-box at this time.

See this wiki page for more information and a solution.. but it's not pretty:
http://nsis.sourceforge.net/InstFile...ring_InstFiles

You can also try bumping this thread to see if the author could contribute their patch to the official NSIS distribution:
http://forums.winamp.com/showthread.php?t=275174


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.