![]() |
#1 |
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 |
![]() |
![]() |
![]() |
#2 |
Member
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!") |
![]() |
![]() |
![]() |
#3 |
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. |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Jul 2002
Location: Germany
Posts: 45
|
Hello Joost Verburg,
Thank you for the link to the snapshot... Fiffi |
![]() |
![]() |
![]() |
#5 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Updated multilanguage.nsi available at CVS.
|
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Jul 2002
Location: Germany
Posts: 45
|
Hello Joost Verburg,
thank you very much for the updated file! Fiffi |
![]() |
![]() |
![]() |
#7 |
Guru Meditation (Alumni)
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 |
![]() |
![]() |
![]() |
#8 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Of course, use SectionSetText.
Example: code: |
![]() |
![]() |
![]() |
#9 |
M.I.A.
[NSIS Dev, Mod] 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:
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#10 |
Guru Meditation (Alumni)
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 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|