Archive: Automatically Make Multiple Builds


Automatically Make Multiple Builds
I've skimmed through the manual and googled this briefly, but I can't seem to find any documentation on it.

How do I make multiple builds/installers from the same script at once?


open cmd and type:

path_to_nsis\makensis.exe /DBUILD=0.1.2.3 path_to_your_script\script.nsi

On the top of your script:
!ifdef BUILD
!if BUILD = 0.1.2.3
# do something
!else if BUILD = 0.2.3.4
# do something else and so on
!endif
!else # BUILD is not defined
# do something else
!endif


You should make batch files to simplify this operation.