Old 1st February 2007, 03:17   #1
Malwarebytes
Junior Member
 
Join Date: Feb 2007
Posts: 4
Which language

How can I use NSIS to figure out which language a user chose. I want to execute my program depending on the users choice.

For example:

If Language = English Then Execute MyProgram.exe /English
If Language = Dutch Then Execute MyProgram.exe /Dutch

and so on.. Any help appreciated.
Malwarebytes is offline   Reply With Quote
Old 1st February 2007, 04:07   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
var $LANGUAGE contains the language code, for instance 1033 for english.

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 1st February 2007, 04:10   #3
Malwarebytes
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thank you for your quick reply. What is the correct case switching in NSIS? Is there any sample script I can look at.
Malwarebytes is offline   Reply With Quote
Old 1st February 2007, 04:23   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
See the included into examples directory, LogicLib.nsi.

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
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