Archive: Compiling and executing an nsi file from another nsi file using nsis code


Compiling and executing an nsi file from another nsi file using nsis code
Suppose I have two nsi files demo.nsi (compiles to demo.exe) and setup.nsi. (compiles to setup.exe). I want to use demo.nsi inside setup.nsi in such a way that when setup.exe is executed, it compiles the demo.nsi, and then executes the demo.exe. Just want to know if that is possible to do in nsis ? Thanks.


Yes. During compilation you can run a second compiler on the second nsi file using the !execute command.
http://nsis.sourceforge.net/Docs/Chapter5.html#5.1.9