Archive: Recompiling the NSIS Source Code


Recompiling the NSIS Source Code
Hi,

I'm trying to recompile the NSIS source code (v1.96). I first went to mingw.org and downloaded & installed the compiler. I created a Release directory under the exehead directory. I compile fine by typing either "make" or "make all" without any errors.

My first test is to run an existing .nsi file through my new makensis.exe. It's hard to explain in words, but I'll try my best. When I run my newly created install exe, instead of bringing up one dialog where the user chooses where to install, two dialogs come up. One is in the middle of the screen with the title test of "installer..." and has the install button. But there is another dialog in the upper left of my screen that has the default location of where to install to as well as the browse button. This dialog does not seem to be framed either.
If the description doesn't make sense, I can attach some bitmaps.

I am compiling this under W2K. Is there anything else that I need to do?

Secondly, the reason I am trying to compile the source is that I would like to have a version that creates a log. So I uncommented the definition of NSIS_CONFIG_LOG in config.h and recompiled everything. I then created another installer.exe using this version of makensis.exe. I was expecting to get a file "install.log" with a list of everything installed, but I could not find the file anywhere. Is there anything else about NSIS_CONFIG_LOG that I need to know?

Thanks in advance,
Beth


This same bug has been reported before. You might want to search the forum archives to see if there was a solution. It seems like it is a mingw problem. Did you try upgrading the mingw packages? The complete package is usually out of date.


Yes, it does seem to be a problem with mingw. I made the updates suggested in resource.rc and that solved the problem. I suppose I should also try updating the software too w/o making the changes to the software- I would prefer that as my final solution.

Thanks.

I will re-ask my question about the logging under another subject heading as that still does not seem to be working like I thought.


Borland's Free Compiler does a better job--smaller exe head size.


how do you compile using borland free compiler?
i am totally new to this, and have no idea how to use the compiler.

also, do you recommend any other program to use as a compiler?
what is the distribution build of nsis compiled with?


Justin uses the Microsoft compiler shipped with Visual C++ 6.0 to build NSIS (and more, probabaly).


Originally posted by qwertyandy
how do you compile using borland free compiler?
i am totally new to this, and have no idea how to use the compiler.

also, do you recommend any other program to use as a compiler?
what is the distribution build of nsis compiled with?



Try this tutorial for borland command line tools
qwertyandy

http://winprog.org/tutorial/bcpp.html

NSIS 2.0a1 source... problem.

I cannot compile on VS.NET 7.0.

Error msg..
1)

LINK : fatal error LNK1272: cannot merge '.reloc' into section....


2)

exedata.cpp(16) : fatal error C1083: Cannot open include file 'exehead/Release/icon.h': No such file or directory


Quote:


Sure... set to Release win32 compile mode.

but, I can't compile... T-T



Originally posted by dTomoyo
NSIS 2.0a1 source... problem.

I cannot compile on VS.NET 7.0.
Make sure you are not trying to run the "Debug" build. Only the Release build will work.