Archive: Building NSIS Error


Building NSIS Error
Hi everyone

" Creating library build\release\nsExec\nsExec.lib and object build\release\nsE
xec\nsExec.exp
err(["build\release\NSIS Menu\NSIS"], ["Contrib\NSIS Menu\nsismenu\nsismenu.cpp"
, "Contrib\NSIS Menu\nsismenu\nslinks.cpp"])
*** error: WXWIN must be set to build NSIS Menu!
scons: *** [build\release\NSIS Menu\NSIS] Error 1
scons: building terminated because of errors."

I've Building NSIS like this "http://nsis.sourceforge.net/Docs/AppendixG.html",but have error like above.What's wrong is it? What shoud I do?

Thanks.


You need to extra headers to build the NSIS menu: "To build NSIS Menu, install wxWidgets 2.8, create an environment variable named WXWIN containing the path to the installation directory of wxWidgets, run Contrib\NSIS Menu\wx\wxbuild.bat and build NSIS as usual."

but unless you changed the nsis menu, you probably don't need/want to compile it, so you can add a skip parameter to scons ( scons SKIPUTILS=all SKIPMISC=all ... or something like that, depends on what you want to skip)


Thank you very much.I've do it like you said and succeed.
I'm still have some problems.

1. How can I use this "makensis.exe *.exe" to debug,because there have any *.pdb file.It just create *.exe of Release.

2. How can I create a VC++ project(like *.vcproj,*.sln and *.dsw). I can use this project debug *.nsi.

3. I want to know the installer(which is make by makensis.exe) file's struct in order to extract every file include installer files.

In fact,what I want is to know how makensis.exe to compress files and how it extract installer's files. So,I think the best way is to debug makensis.exe,and find out it how to deal with *.nsi file code,especially these file which has compress code.

Thanks for everyone's any help. Thanks for your reading.