Skip to content
⌘ NSIS Forum Archive

compiling multiple .nsi files into one executable

3 posts

mdm#

compiling multiple .nsi files into one executable

My install script is getting very large and I would like to break it into parts, and compile into the same (single) .exe file. How?

thanks,
mdm
vbgunz#
hello,

You can divide your script into relevant chunks and then save each script with an extension of .nsh

Like Joost mentioned, you then !include those .nsh files.

You can also pull up some very cool tricks with !macro and !insertmacro. !macro holds pieces of code and !insertmacro will insert those pieces into the script where ever you reference it.

This can help you in removing the redundancy from your script.

Good luck!