Archive: Outsource nsi-script parts


Outsource nsi-script parts
Hello

Simple question: Is there a possibility to load parts of the nsi-script by including it? I started a project where several developers are included to program several parts of the script. If which parts can be outsourced?


You can use !include to include any text file. The text file can contain anything including macros, instructions and attributes. The script in the file will be treated as part of the original script.


Ok but how it'll be, more or less like this:


!Include "functions1.nsi"
Msgbox MB_OK $0 ; $0 Will be a text from a function in functions1.nsi
!Include "functions2.nsi"
Msgbox MB_OK $1 ; $1 Will be a text from a function in functions2.nsi

thx!:up: