I have an executable generated from an NSIS script that is included in another NSIS script via the File command. Is there any way to use conditional compilation to check for the existence of this executable and if it doesn't exist, compile it from the script, then include it using File? Here's basically what I need, although I know this doesn't work the way it's written, this is just for illustration of the functionality I'm looking for:
code:
!ifndef filename.exe
NSExec ${NSISDIR}\makensis.exe filename.nsi
!endif
Section SomeSection
File filename.exe
. . .
SectionEnd
I'm guessing the answer is "no, just compile the first script by hand you lazy programmer" :P If that's the case I'm fine with that, it would just be nice if it could be worked out this way.