Archive: NSIS 2.23 French Installer + Docs From Veekee


NSIS 2.23 French Installer + Docs From Veekee
Here is a link for the french users of NSIS:

http://www.rapidfile.fr/wget.php?id=fw0Gjd8x

Veekee is the author of the original translation, and i maintain it up to date.


Compiling NSIS with Scons
Hello!
I have downloaded your french nsis. It is great.
I am making polish version of NSIS. But there is something strange with it.
I am compiling it under WindowsXP SP2+ Microsoft Visual Studio 2005 Express Editio + Platform SDK (newest) + Python 2.5 + Scons-0.96.94.
My NSIS source are here: C:\Program Files\NSIS\src

So, in cmd i wrote:
C:\Program Files\NSIS\src scons

It began something ;) After this new folders were created, for example: C:\Program Files\NSIS\src\build\release -> here I have many subfolders. I can see that there is makensis.exe, makensisw.exe nsis.chm and many others...
but, I can't see there for example NSIS.exe or other files that are installed with NSIS...

So, please somebody tell me - How could I compile it, using sconf, to have on output compiled NSIS distribution?
Something like You have - one exe installer of NSIS in other language.
Please help me, thanks in advance.
Paul


Use scons 0.96.93 and follow the instructions in Appendix G. Specifically, you must use the `dist-installer` or `install` with PREFIX target.


Originally posted by kichik
Use scons 0.96.93 and follow the instructions in Appendix G. Specifically, you must use the `dist-installer` or `install` with PREFIX target.
Hi!
I have installed scons 0.96.93 and it is working!
Thanks!!! You are my hero ;)

I have got a big problem with compilation of nsis docs. The problem is chars encoding in Halibut (which compiling with HTML Help Workshop NSIS docs do chm file).
I am from Poland. We have in our alphabet some chars like: ś, ć, ż, ź, ń, ą, ę, ł etc...
In Halibut sources, in C:\Program Files\NSIS\src\Docs\src\bin\halibut\contents.c in number_cfg function we have this line of code:
state->chaptertext = L"Chapter";
In polish language word "Chapter" means "Rozdział" - but in "Rozdział" word there is char "ł" - Halibut don't know this char - compilation stops.
What I have to do, to have polish signs in there? What kind of encoding using Halibut? I tried to write something like this, but no effects: state->chaptertext = L"Rozdzia\322";

Thanks for any help, best regards

That's not up to halibut, that's up to your compiler. Converting that string into a Unicode string is done at compile time. If your code page is set right, it should correctly convert that character into Unicode. Make sure the correct language is set in the Regional and Language Options control panel under Language for non-Unicode programs.


Originally posted by kichik
Make sure the correct language is set in the Regional and Language Options control panel under Language for non-Unicode programs.
I got there my language - Polish. Hmm...

If all else fails, a post processor script can always do the trick. Have it run on the generated HTML files before the CHM is generated and replace words that weren't transalted.


Originally posted by kichik
If all else fails, a post processor script can always do the trick. Have it run on the generated HTML files before the CHM is generated and replace words that weren't transalted.
Could you explain it more clearly to me. I don't know what I have to do. I remind that the problem is non-ascii character - "ł" in "Rozdział" word (Chapter)
These word is used to create html files with name:
Rozdział1.html, Rozdział2.html... Rozdział5.html and to insert this word in this files, for examle to Table of Contents:
+ Chapter 1: Introduction to NSIS (Rozdział 1: Wprowadzenie do NSIS)
+ Chapter 2: Tutorial: The Basics (Rozdział 2: Poradnik: Podstawy) etc...

After compilation I got an error:


..."C:\Program Files\NSIS\src\Docs\src\license.but"
halibut: unable to open output file `Rozdzia?1.html'
scons: *** [build\release\Docs\chm\NSIS.chm] Error 1
scons: building terminated because of errors.
C:\Program Files\NSIS\src>

Regards

Ah, then it's a scons error, not a compilation error. Put the following on the top of the appropriate SConscript.

# -*- coding: iso-8859-2 -*-

Originally posted by kichik
Ah, then it's a scons error, not a compilation error. Put the following on the top of the appropriate SConscript.
# -*- coding: iso-8859-2 -*-
I am sorry. It is not working... I give up... I don't know how to do that...
I will do it in another way.

I will compile it not with "Rozdział" but with "Rozdzial". Then I will correct generated files - Rozdzial1.html, Rozdzial2.html (etc) to Rozdział1.html, Rozdział2.html(etc.). And I will compile it by myself with
HtmlWorkshop.

If somebody knows how to solve my problem it would be great.
Kichik, thanks for your help.
I hope, that soon my polish NSIS and nsis documentation will be finished.

Seems halibut needs a little push as well. In bk_xhtml.c, change xhtml_utostr to:

#include <windows.h>

static void xhtml_utostr(wchar_t * in, char **out)
{
int l = ustrlen(in);
int ol = (l + 1) * 2;
*out = smalloc(ol);
WideCharToMultiByte(CP_ACP, 0, in, -1, *out, ol, 0, 0);
}

Originally posted by kichik
Seems halibut needs a little push as well. In bk_xhtml.c, change xhtml_utostr to:
#include <windows.h>

static void xhtml_utostr(wchar_t * in, char **out)
{
int l = ustrlen(in);
int ol = (l + 1) * 2;
*out = smalloc(ol);
WideCharToMultiByte(CP_ACP, 0, in, -1, *out, ol, 0, 0);
}
Thanks Again! It is working now, but not everything.
With Your code, I can compile sources and generate NSIS.chm.
Encoding in this file is OK, compiler creates proper files (Rozdział1.html, Rozdział2.html...

There is one problem yet, I hope last.
Toc.hhc is generated incorrectly. For example in this line (in toc.hhc):

<li><OBJECT type="text/sitemap"><param name="Local" value="Rozdział1.html#"><param name="Name" value="Rozdzia***0322; 1: Wprowadzenie do NSIS"></OBJECT></li>

As You can see "Rozdział1.html#" is OK, but "Rozdzia***0322; 1" is NOT - this ***0322; should be chapter "ł" in "windows-1250" encoding, I think it is in UTF.
So, how to correct this?
Thanks.

I actually can't see, it looks exactly the same and it showed OK for me in Hebrew. The relevant code is in xhtml_add_contents_entry in bk_xhtml.c. Maybe you be able to see where the problem is.


Hello

We don't understand but we don't have any news of WebMatze...
so ...the 2.23 NSIS version in french have broken links

here is the link of NSIS 2.23 in french is there
http://perso.orange.fr/patrick.nourr...3-fr-setup.zip

mirror #1
http://skeksess.free.fr/winampfr/nsis_2.23_fr.zip
see you guys


we don't touch to the translation. ask Webmatze ( if you can !) to make modifications


Re: Compiling NSIS with Scons

Originally posted by PepeSoft
I am compiling it under WindowsXP SP2+ Microsoft Visual Studio 2005 Express Edition + Platform SDK (newest) + Python 2.5 + Scons-0.96.93.
My NSIS source are here: C:\Program Files\NSIS\src
Hello again
I had to reinstall Windows. After that I can't compile NSIS sources in scons(Visual Studio 2005 Express Edition + PlatformSDK + Python 2.5 + Scons-0.96.93).
I got this error:

C:\Program Files\NSIS\src>scons
scons: Reading SConscript files ...
Delete("nsis-10-Mar-2007.cvs")
Delete(".instdist")
Delete(".test")
Using Microsoft tools configuration
Checking for memset requirement... (cached) yes
Checking for C library gdi32... (cached) no
Checking for C library user32... (cached) no
Checking for C library pthread... (cached) no
Checking for C library stdc++... (cached) no
Checking for C library iconv... (cached) no
Checking for C library version... (cached) no
Checking for C library dl... (cached) no
Checking for C library gdi32... (cached) no
Checking for C library iconv... (cached) no
Checking for C library pthread... (cached) no
Checking for C library user32... (cached) no
Checking for C++ library cppunit... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
link /nologo /opt:nowin98 /map /OUT:build\release\makensis\makensis.exe build\release\makensis\build.obj build\release\m
akensis\clzma.obj build\release\makensis\crc32.obj build\release\makensis\DialogTemplate.obj build\release\makensis\dirr
eader.obj build\release\makensis\fileform.obj build\release\makensis\growbuf.obj build\release\makensis\lang.obj build\r
elease\makensis\lineparse.obj build\release\makensis\makenssi.obj build\release\makensis\manifest.obj build\release\make
nsis\mmap.obj build\release\makensis\Plugins.obj build\release\makensis\ResourceEditor.obj build\release\makensis\Resour
ceVersionInfo.obj build\release\makensis\script.obj build\release\makensis\ShConstants.obj build\release\makensis\strlis
t.obj build\release\makensis\tokens.obj build\release\makensis\util.obj build\release\makensis\winchar.obj build\release
\makensis\writer.obj build\release\makensis\bzip2\blocksort.obj build\release\makensis\bzip2\bzlib.obj build\release\mak
ensis\bzip2\compress.obj build\release\makensis\bzip2\huffman.obj build\release\makensis\7zip\7zGuids.obj build\release\
makensis\7zip\7zip\Common\OutBuffer.obj build\release\makensis\7zip\7zip\Common\StreamUtils.obj build\release\makensis\7
zip\7zip\Compress\LZ\LZInWindow.obj build\release\makensis\7zip\7zip\Compress\LZMA\LZMAEncoder.obj build\release\makensi
s\7zip\7zip\Compress\RangeCoder\RangeCoderBit.obj build\release\makensis\7zip\Common\Alloc.obj build\release\makensis\7z
ip\Common\CRC.obj build\release\makensis\zlib\deflate.obj build\release\makensis\zlib\trees.obj
build.obj : error LNK2019: unresolved external symbol __imp__SendMessageA@16 referenced in function "public: void __this
call CEXEBuild::notify(enum notify_e,char const *)const " (?notify@CEXEBuild@@QBEXW4notify_e@@PBD@Z)
DialogTemplate.obj : error LNK2001: unresolved external symbol __imp__SendMessageA@16
build.obj : error LNK2019: unresolved external symbol __imp__CharNextExA@12 referenced in function "private: int __thisc
all CEXEBuild::preprocess_string(char *,char const *,unsigned short)" (?preprocess_string@CEXEBuild@@AAEHPADPBDG@Z)
build.obj : error LNK2019: unresolved external symbol __imp__wsprintfA referenced in function "private: int __thiscall C
EXEBuild::add_intstring(int)" (?add_intstring@CEXEBuild@@AAEHH@Z)
script.obj : error LNK2001: unresolved external symbol __imp__wsprintfA
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__CreateDialogIndirectParamA@20 referenced in functi
on "public: struct HWND__ * __thiscall CDialogTemplate::CreateDummyDialog(void)" (?CreateDummyDialog@CDialogTemplate@@QA
EPAUHWND__@@XZ)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "public: vo
id __thiscall CDialogTemplate::PixelsToDlgUnits(short &,short &)" (?PixelsToDlgUnits@CDialogTemplate@@QAEXAAF0@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__MapDialogRect@8 referenced in function "public: vo
id __thiscall CDialogTemplate::PixelsToDlgUnits(short &,short &)" (?PixelsToDlgUnits@CDialogTemplate@@QAEXAAF0@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "public: struct
tagSIZE __thiscall CDialogTemplate::GetStringSize(unsigned short,char *)" (?GetStringSize@CDialogTemplate@@QAE?AUtagSIZE
@@GPAD@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "public: str
uct tagSIZE __thiscall CDialogTemplate::GetStringSize(unsigned short,char *)" (?GetStringSize@CDialogTemplate@@QAE?AUtag
SIZE@@GPAD@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__GetTextExtentPoint32A@16 referenced in function "p
ublic: struct tagSIZE __thiscall CDialogTemplate::GetStringSize(unsigned short,char *)" (?GetStringSize@CDialogTemplate@
@QAE?AUtagSIZE@@GPAD@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "public: str
uct tagSIZE __thiscall CDialogTemplate::GetStringSize(unsigned short,char *)" (?GetStringSize@CDialogTemplate@@QAE?AUtag
SIZE@@GPAD@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__CreateFontIndirectA@4 referenced in function "publ
ic: struct tagSIZE __thiscall CDialogTemplate::GetStringSize(unsigned short,char *)" (?GetStringSize@CDialogTemplate@@QA
E?AUtagSIZE@@GPAD@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "publi
c: struct tagSIZE __thiscall CDialogTemplate::GetStringSize(unsigned short,char *)" (?GetStringSize@CDialogTemplate@@QAE
?AUtagSIZE@@GPAD@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "public: struct tag
SIZE __thiscall CDialogTemplate::GetStringSize(unsigned short,char *)" (?GetStringSize@CDialogTemplate@@QAE?AUtagSIZE@@G
PAD@Z)
DialogTemplate.obj : error LNK2019: unresolved external symbol __imp__GetObjectA@12 referenced in function "public: stru
ct tagSIZE __thiscall CDialogTemplate::GetStringSize(unsigned short,char *)" (?GetStringSize@CDialogTemplate@@QAE?AUtagS
IZE@@GPAD@Z)
makenssi.obj : error LNK2019: unresolved external symbol __imp__IsWindow@4 referenced in function _main
script.obj : error LNK2019: unresolved external symbol __imp__CharNextA@4 referenced in function "private: void __thisca
ll CEXEBuild::ps_addtoline(char const *,class GrowBuf &,class StringList &)" (?ps_addtoline@CEXEBuild@@AAEXPBDAAVGrowBuf
@@AAVStringList@@@Z)
script.obj : error LNK2019: unresolved external symbol __imp__CharPrevA@8 referenced in function "private: int __thiscal
l CEXEBuild::doParse(char const *)" (?doParse@CEXEBuild@@AAEHPBD@Z)
script.obj : error LNK2019: unresolved external symbol _VerQueryValueA@16 referenced in function __catch$?doCommand@CEXE
Build@@AAEHHAAVLineParser@@@Z$0
script.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoA@16 referenced in function __catch$?doCommand
@CEXEBuild@@AAEHHAAVLineParser@@@Z$0
script.obj : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeA@8 referenced in function __catch$?doComm
and@CEXEBuild@@AAEHHAAVLineParser@@@Z$0
build\release\makensis\makensis.exe : fatal error LNK1120: 20 unresolved externals
scons: *** [build\release\makensis\makensis.exe] Error 1120
scons: building terminated because of errors.
C:\Program Files\NSIS\src>


Please, anybody help me. I don't know why it is not working...What I have to do?
Thanks in advance.
-Pawel

You haven't configured VC correctly. Redo the steps described in MSDN, delete .sconsign.dblite and try again.

http://msdn.microsoft.com/vstudio/ex...alc/usingpsdk/


Originally posted by kichik
You haven't configured VC correctly. Redo the steps described in MSDN, delete .sconsign.dblite and try again.

http://msdn.microsoft.com/vstudio/ex...alc/usingpsdk/
Yes, now it is working fine.
Thanks!
Best regards
-Pawel

Quote:


Hi,
I have the same problem again. I cant run scons on my system to compile Nsis sources.
WindowsXP SP3 + Microsoft Visual Studio 2005 Express Edition + Platform SDK + python-2.5.2 + scons-0.98.5.win32 + wxMSW-2.8.7. NSIS source are here: C:\Program Files\NSIS\src

So, in cmd i wrote:
C:\Program Files\NSIS\src scons
I have info, that scons can't be find...

What I did:
- Installed VisualStudio with MSDN
- Installed Platform SDK
- Installed Python, WxWidgets, Scons
- Added WXWIN to path
- Run th bat file from src\contrib\nsis menu\wx\wxbuild.bat
- Added path to Python, to Scons
- Open VisualStudio and added paths to include and lib dirs...

And nothing... What else I have to do?
Thanks for any help.

Ps: Tried to do it also on my Vista32 and VisualStudio 2008 - no results :(

Regards,
-Pawel

Originally posted by kichik
You haven't configured VC correctly. Redo the steps described in MSDN, delete .sconsign.dblite and try again.

http://msdn.microsoft.com/vstudio/ex...alc/usingpsdk/


Any idea how to do it? What I have to add to system path, to run Scons, and compile all NSIS sources?
-Pawel