Archive: NSIS and MSYS/make


NSIS and MSYS/make
I'm trying to use NSIS in conjunction with MSYS/make. The /D options of makensis do not work due to the GNU-shell of MSYS which gets confused by the slash.

I thought about building a different version of NSIS (using hyphens for options in the command line as it has been prepared already in the nsis sources) but my scons system doesn't work properly.

Is there a workaround using scons in an MSYS/make environment (I tried also to escape the slash)? Has anyone encountered similar problems and solved them? has anyone a different build ready for download?

Thanks
Uli


Addendum:

I'm not a bash genious, but there must be a way to keep the bash from expanding the /DWHATEVER statement (to "C:/Orcus/msys/1.0/DWHATEVER") and passing it unaltered to makensis.


A workaround would be writing a configuration file which contains !define instructions and include that file from the script. You can also call makensis with the configuration file first and then the script itself, so you won't have to change the script.

echo !define WHATEVER > config.nsh
makensis config.nsh script.nsi