Old 30th August 2010, 13:29   #1
thanatos83
Junior Member
 
Join Date: Dec 2009
Posts: 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???
thanatos83 is offline   Reply With Quote
Old 30th August 2010, 17:45   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
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 
Animaether is offline   Reply With Quote
Old 30th August 2010, 20:28   #3
thanatos83
Junior Member
 
Join Date: Dec 2009
Posts: 29
thanks Animaether... I will try it
thanatos83 is offline   Reply With Quote
Old 31st August 2010, 10:46   #4
thanatos83
Junior Member
 
Join Date: Dec 2009
Posts: 29
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...
thanatos83 is offline   Reply With Quote
Old 31st August 2010, 12:37   #5
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
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"'
demiller9 is offline   Reply With Quote
Old 31st August 2010, 18:59   #6
thanatos83
Junior Member
 
Join Date: Dec 2009
Posts: 29
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...
thanatos83 is offline   Reply With Quote
Old 31st August 2010, 19:08   #7
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Enabling cancel button during installation

Quote:
Originally Posted by thanatos83 View Post
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
Animaether 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