Skip to content
⌘ NSIS Forum Archive

NSIS 2 - Beta 0 is out!

202 posts

kichik#

NSIS 2 - Beta 0 is out!

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.
kichik#
Please answer this survey, it is about multiple languages:
SmartyMan#
Originally posted by kichik
Please answer this survey, it is about multiple languages:
http://sourceforge.net/survey/survey...urvey_id=13396
Am I the only one not having a sourceforge account? 😱

As I said before: if you need assistance with a german translation I'll be happy to help 🙂
veekee#
as i explained to Kichik, i offer my help for the french transaltion ! Yeh, officially said 😁 😉
kichik#edited
CVS (latest development version) available here

User made UIs available here.
Joost Verburg#
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
kichik#
What compile errors? What compiler?

Suggestions added into todo list. Next time please use SourceForge.
Joost Verburg#
I'm using MS Visual C++ 6.

NSIS\Source\exehead\Ui.c(554) : error C2065: 'IDC_HAND' : undeclared identifier
NSIS\Source\exehead\Ui.c(554) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
NSIS\Source\exehead\Ui.c(554) : warning C4024: 'LoadCursorA' : different types for formal and actual parameter 2
NSIS\Source\exehead\Ui.c(634) : error C2065: 'BIF_NEWDIALOGSTYLE' : undeclared identifier
I'll use SF next time. 😉 Should I submit suggestions I made earlier again (Build-in splash screen) ?
kichik#
Download ui.c from the CVS. It should solve that.

You don't need to resubmit anything, I have it all written down.
kichik#
Multiple languages in one installer option is almost ready.
So here is yet another small teaser 😁
Joost Verburg#
Great, I'll wait for the next release 😁 When it is possible to customize all the dialogs, I'll make a modern-style UI for NSIS (like Inno Setup, InstallShield etc.).
Joost Verburg#
Found another one 🙂

You should remove this from the NSIS install script:

WriteRegStr HKCR "NSISFile\shell\compile-bz2" "" "Compile NSI (with bz2)"
WriteRegStr HKCR "NSISFile\shell\compile-bz2\command" "" \
'"$INSTDIR\makensisw.exe" "$INSTDIR\makensis.exe" /CD /X"SetCompressor bzip2" "%1"'
YtseJam#
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... 😉
kichik#
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.
kichik#
Another survery. This time about mutliple languages.

Please answer: http://sourceforge.net/survey/survey...urvey_id=13412
veekee#
as we would be able to select language, i hope, we would be able to set visible or invisible this page 😉 !
kichik#
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?
veekee#
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 ?
kichik#
If people vote yes for that option, you will be able to create an InstallOptions page to select the language.
Joost Verburg#
Originally posted by kichik
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.
Oops, I see, it does not use makensis-bz2 anymore 🙂 Maybe you can make it optional in the installer.
kichik#
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.
veekee#
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 ....) !
veekee#
greaaat ! thanks a lot ...
👍

But there are no example of language use 🙁 !

BTW : great 👍
veekee#
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 😉
kichik#
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]
SmartyMan#
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.