Old 24th September 2002, 01:37   #1
Fiffi
Junior Member
 
Join Date: Jul 2002
Location: Germany
Posts: 45
multilanguage installer with uninstaller

Hello friends,

i try to build an multi-language installer (based on the example "languages.nsi") with NSIS 2.0a7:

My installer is multi language, but the uninstaller is not multi language....


Is is not possible to create a multi language uninstaller?


Fiffi
Fiffi is offline   Reply With Quote
Old 24th September 2002, 07:44   #2
Kypec
Member
 
Kypec's Avatar
 
Join Date: Jul 2002
Location: Slovakia
Posts: 54
Hi everybody,

I have the similar problem - when I compiled
C:\Program Files\NSIS\Examples\Modern UI\MultiLanguage.nsi
from 'nsis-snapshot-sep22.exe' and installed with DUTCH as choosen language then the uninstaller was in ENGLISH

IMHO Joost could help us to solve this problem

P.S. I'm using Windows 98 SE

Kypec ("NSIS 2 RUUUULES!")
Kypec is offline   Reply With Quote
Old 24th September 2002, 08:35   #3
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
The uninstaller in MultiLanguage.nsi just uses the closest match to the system's default language.

You can either use LangDLL (the language selection dialog) for the uninstaller or save the chosen language to the registry.

I think I will add that to the Modern UI example script.

You should also get a new snapshot with installer from http://nsis.sf.net/ it contains a lot of fixes and new features.
Joost Verburg is offline   Reply With Quote
Old 24th September 2002, 19:19   #4
Fiffi
Junior Member
 
Join Date: Jul 2002
Location: Germany
Posts: 45
Hello Joost Verburg,

Thank you for the link to the snapshot...


Fiffi
Fiffi is offline   Reply With Quote
Old 24th September 2002, 20:06   #5
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Updated multilanguage.nsi available at CVS.
Joost Verburg is offline   Reply With Quote
Old 24th September 2002, 20:45   #6
Fiffi
Junior Member
 
Join Date: Jul 2002
Location: Germany
Posts: 45
Hello Joost Verburg,

thank you very much for the updated file!


Fiffi
Fiffi is offline   Reply With Quote
Old 26th September 2002, 17:56   #7
Lucas
Guru Meditation (Alumni)
 
Lucas's Avatar
 
Join Date: Aug 2001
Location: Quebec, Canada
Posts: 191
I was wondering... is there a way to change the installer sections according to the language?

Like:

Section "Test" Test
[...]
SectionEnd

I'd like "Test" to change for something else when the language is setted to a non-english one, is that possible?

Regards,
-L
Lucas is offline   Reply With Quote
Old 26th September 2002, 18:00   #8
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Of course, use SectionSetText.

Example:
code:

StrCmp $LANGUAGE ${LANG_DUTCH} "" +2
SectionSetText ${SecCreateUninst} "Deïnstallatie programma"

Joost Verburg is offline   Reply With Quote
Old 26th September 2002, 18:00   #9
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Sure. In .onInit, after you select the language, let it be the default or with LangDLL, use StrCmp $LANGAUGE ${LANG_???} to set the section name.

For example:
PHP Code:
StrCmp $LANGUAGE ${LANG_ENGLISH+2
   SectionSetText 
${SEC1"English name"
StrCmp $LANGUAGE ${LANG_FRENCH+2
   SectionSetText 
${SEC1"French name" 

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th September 2002, 14:16   #10
Lucas
Guru Meditation (Alumni)
 
Lucas's Avatar
 
Join Date: Aug 2001
Location: Quebec, Canada
Posts: 191
Oops, sorry it was in the example script, didn't notice it at first.

Thank you guys.

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