Archive: Compile script while compiling script :)


Compile script while compiling script :)
hello.

got another problem. i want to compmile a script. but therefore i need defines, that will be created by another script. this script (after beeing compiled and executed) collects information in silent-installer-mode and writes them down to nsis-header-file.
the nsis-header-file will be included by the first script, and everything goes on.
but now, i want to start the compilation of this script by the !system command, then, when the compiler returns 0, execute the file, and at least include the header.

but this code doesn't work:

!system         "${NSISDIR}\makensis.exe '${Source_Files}\maps\mapconfig.nsi'" = 0
!system "${Source_Files}\maps\mapconfig.exe" = 0
!include "${Source_Files}\maps\mapconfig.nsh"


any solution, or will i have to precompile the config-application, and only launch it at compiletime of the first script?

You're not using quotes as should in the !system command. You should use double quotes to quote paths so Windows can distinguish the parameters from the EXE path. See makensis.nsi for an example.


worked!
thank u very much!

i forgot to say, that i defined ${Source_Files} relative, and i thought that was the fault.