![]() |
#1 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
NSIS 2
It is ready! My modifications of NSIS 2. Everything that was in NSIS 1.99 and even more. To see what's new go here.
This time it is hosted on SourceForge. CVS will be available soon. Project page can be found here Download your copy here. Request features here. Post bugs here. Click here to monitor this package (if you have a SourceForge account). I will keep you updated on developments both here and on SourceForge. Please try to put all bug reports/requests on SourceForge. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#2 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Please answer this survey, it is about multiple languages:
http://sourceforge.net/survey/survey...urvey_id=13396 NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#3 | |
Member
Join Date: Jan 2002
Location: Germany
Posts: 79
|
Quote:
![]() As I said before: if you need assistance with a german translation I'll be happy to help ![]() |
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
as i explained to Kichik, i offer my help for the french transaltion ! Yeh, officially said
![]() ![]() |
![]() |
![]() |
![]() |
#5 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius Last edited by kichik; 2nd August 2002 at 12:41. |
![]() |
![]() |
![]() |
#6 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Great work!
The included source has some compile errors, can you fix 'em? ![]() Other suggestions: * A command to change the license, directory etc. dialogs * A text on the top of the 'Browse For Folder' dialog |
![]() |
![]() |
![]() |
#7 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
What compile errors? What compiler?
Suggestions added into todo list. Next time please use SourceForge. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#8 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
I'm using MS Visual C++ 6.
code: I'll use SF next time. ![]() |
![]() |
![]() |
![]() |
#9 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
thank you so much, kichik! if you are looking for a german translation, let me know
![]() |
![]() |
![]() |
![]() |
#10 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Download ui.c from the CVS. It should solve that.
You don't need to resubmit anything, I have it all written down. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#11 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Multiple languages in one installer option is almost ready.
So here is yet another small teaser ![]() NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#12 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Great, I'll wait for the next release
![]() |
![]() |
![]() |
![]() |
#13 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Found another one
![]() You should remove this from the NSIS install script: code: |
![]() |
![]() |
![]() |
#14 |
Forum King
|
Kichik, thought about BiDi support?(Hebrew, Arabic, etc...) Should go from right-to-left in those cases.
I'm sure you've noticed that in the image you posted here... ![]() |
![]() |
![]() |
![]() |
#15 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Joost, I left it there for backward support, it works.
Nant, when I finish writing ChangeUI (make all dialogs changeable), you will be able to load a BiDi UI for Hebrew, Arabic and all others. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#16 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Another survery. This time about mutliple languages.
Please answer: http://sourceforge.net/survey/survey...urvey_id=13412 NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#17 |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
as we would be able to select language, i hope, we would be able to set visible or invisible this page
![]() |
![]() |
![]() |
![]() |
#18 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
At the moment you can't select a language. You can only select the default if the user's default language doesn't match any of the languages you inserted into the installer.
What page are you referring to? NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#19 |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
Well, as you were talking about a .onLanguageSelect function, i though there would be a special page, with a listbox, that would have allowed the user to select one of the available language !
We could use InstallOptions to do so, i know ! If so, what would be the use of such a function ? |
![]() |
![]() |
![]() |
#20 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
If people vote yes for that option, you will be able to create an InstallOptions page to select the language.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#21 |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
So OK
![]() I voted "Yes" (more work to do ![]() ![]() |
![]() |
![]() |
![]() |
#22 | |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#23 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
I don't think it should be optional, it is very convenient and helpful.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#24 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Alpha 3 is out!
Added LoadLanguageFile Added $LANGUAGE Added /LANG option to string setters (Name, Caption, etc.) 'LogSet on' now builds a log file if not already created Links can be found in the first post of this thread. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#25 |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
1) It shows NSISv2a2 during install !
2) this fails during copy, just after Output Dir ! Seems to be like an infinite loop (my system resources goes down ....) ! |
![]() |
![]() |
![]() |
#26 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Big oops
![]() Working on it... [edit]Done! Thanks veekee[/edit] NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#27 |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
greaaat ! thanks a lot ...
![]() But there are no example of language use ![]() BTW : great ![]() |
![]() |
![]() |
![]() |
#28 |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
OK... lets go :
1) if LoadLanguage is not the first command, it seems that Name is skipped during compilation ... 2) LoadLanguage can only be used ouside a function .... This means that i can't write (in C++ style): if($LANGUAGE==1036) LoadLanguage "French.nlf" else LoadLanguage "English.nlf" Currrently, the function is used during generation, not during the install process ! 3) would we able, if language is set on-the-fly, to be able to use different LicenseText, depending of the language ? 4) how work $LANGUAGE ? Is the the language of the language file, of the one of the system ? Thanks a lot ![]() |
![]() |
![]() |
![]() |
#29 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
LoadLanguageFile was meant to be used outside of functions. It doesn't make any sense to load it by the installer. $LANGUAGE is the lagnuage used on the user system. It is there to let you choose if you want to display a message in French or English.
LicenseText alreayd have a /LANG option so you can set different license texts for each language. You can also set different license data files for each language. I will look into that name problem. [edit]Works for me... please try again[/edit] NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#30 |
Member
Join Date: Jan 2002
Location: Germany
Posts: 79
|
Bug
When using makeNSIS V2.0a3 with this code:
37 SubCaption 0 ": Lizenz-Vereinbarung" 38 SubCaption 1 ": Installations-Optionen" 39 SubCaption 2 ": Installations-Verzeichnis" 40 SubCaption 3 ": Installiere Daten" 41 SubCaption 4 ": Installation abgeschlossen" I get this error message: Usage: SubCaption [/LANG=lang_id] page_number(0-4) new_subcaption Error in script "G:\Programme\Smarty\Smarty.nsi" on line 40 -- aborting creation process After removing the lines 40 and 41 (SubCaption 3 & 4) my installer compiles w/o error messages. |
![]() |
![]() |
![]() |
#31 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Again, some compile errors (MS Visual C++ 6.0 SP5)
code: |
![]() |
![]() |
![]() |
#32 |
Member
Join Date: Jan 2002
Location: Germany
Posts: 79
|
When adding "LoadLanguageFile ...\English.nlf" to my script, I get this compiler output:
9 warnings: unknown variable "\r$\n$\t"$0"$\r$\nHit" detected, ignoring unknown variable "\n$\t"$0"$\r$\nHit" detected, ignoring unknown variable "\t"$0"$\r$\nHit" detected, ignoring unknown variable "\r$\nHit" detected, ignoring unknown variable "\nHit" detected, ignoring unknown variable "\r$\nretry" detected, ignoring unknown variable "\nretry" detected, ignoring unknown variable "\r$\nignore" detected, ignoring unknown variable "\nignore" detected, ignoring These are portions of english.nlf, line 36 Adding a "FileErrorText" command makes the warnings disappear. Using the new multi-language concept, how will I get my Section names localized (e.g. "Section Examples" should show an entry named "Beispiele" on german systems)? |
![]() |
![]() |
![]() |
#33 |
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
You could try doubling up the $ characters so that they aren't mistaken for variables.
|
![]() |
![]() |
![]() |
#34 | |
Member
Join Date: Jan 2002
Location: Germany
Posts: 79
|
Quote:
|
|
![]() |
![]() |
![]() |
#35 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Joost, please download the Platform SDK untill I release the next version (MSDN doesn't say anything about it... just assumes you have it =/).
SmartyMan, there is indeed a small bug. What I don't understand is why it didn't happen before ![]() lang.cpp 378: remove ",0". And that subcaption thingy: script.cpp 1608 change "> 2" to "> 4". Another version with these fixed will be out soon. [quoteUsing the new multi-language concept, how will I get my Section names localized (e.g. "Section Examples" should show an entry named "Beispiele" on german systems)?[/quote] Please answer the surveys. It is in there. And thank you for doing the translation. It too will be included in the next version. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#36 |
Member
Join Date: Dec 2001
Posts: 89
|
I've just seen the NSIS_CONFIG_PLUGIN_SUPPORT switch in the config.h in the latest repositiory version. That's a really nice feature, thanks for adding it, it will be really useful in my installers.
But I've also found a small bug (don't know if it already exits in the official NSIS versions, have not tried yet): While writing an extension DLL which adds some lines to the list box during installation, I've found a small problem: After the DLL has added some lines to the list, all further lines added by NSIS itself (by DetailPrint for example) don't go to the end of the list. I've found the reason for this problem: Look at the function update_status_text in ui.c and you'll see the following line: new_item.iItem++; It increases the item index after adding an item. The problem is that this function does not know that my extension DLL has changed the number of lines so that the index is too low. Please apply this fix to your great NSIS branch: Remove the line "new_item.iItem++;" and add "new_item.iItem=ListView_GetItemCount(insthwnd);" before ListView_InsertItem... This always set's the index to the end of the list. |
![]() |
![]() |
![]() |
#37 |
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
NSIS_CONFIG_PLUGIN_SUPPORT is an expirimental idea of mine which is why it shows up in the CVS but is not part of any releases yet. If you haven't already seen this thread please take a look http://forums.winamp.com/showthread....threadid=96856
|
![]() |
![]() |
![]() |
#38 |
Junior Member
Join Date: Sep 2001
Location: Germany
Posts: 10
|
Cannot compile with v2a3
I cannot compile make.nsi included in the attachment make.zip with NSIS 2.0a3. It runs good under v1.99.
|
![]() |
![]() |
![]() |
#39 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
SectionDivider is not available in NSIS 2.
NSIS 2.0a4 will be uploaded in 3 minutes. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#40 | |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
1st : i did not know how to use LoadLanguage... that's OKay now
![]() ![]() About Name.. the following script does not fully compile under v2a4, althought display will be fine... Well, by the way : here is a multi-language script example ![]() Compiler returns : "1 warning: Name command not specified. Assuming default." Quote:
|
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|